Closed hhsprings closed 7 years ago
W3C Validation also reports:
info: 'Element “body” does not need a “role” attribute.'
Maybe it means verbose, so we can remove it simply, I think.
Memo:
Indeed, top
and up
is no longer needed in HTML specification.
Tag | HTML4 | HTML5 |
---|---|---|
author | X | O |
index | O | X |
search | X | O |
copyright | O | O (basically uses license instead) |
top | X | X |
up | X | X |
next | O | O |
prev | O | O |
refs:
About "document" role, WAI-ARIA says:
Authors SHOULD set the role of document on the element that encompasses the entire document. If the document role applies to the entire web page, authors SHOULD set the role of document on the root node for content, such as the body element in HTML or svg element in SVG.
https://www.w3.org/TR/wai-aria/roles#document
It seems setting the role to the body element is good way. So I will keep it.
themes/basic/layout.html has wrong
link rel
usage:The value
top
andup
is invalid forrel
attribute. Please see W3CSchools, etc.