Open anormand opened 9 years ago
+1 for devising a heading structure schema.
For reference, the HTML5 document outline for web.unimelb could be better too:
1. Web.unimelb
1. A digital design system for The University of Melbourne.
2. UOM v0.5
3. Untitled Section
1. Untitled Section
2. For content creators
4. Untitled Section
1. For designers
2. Untitled Section
5. Untitled Section
1. Untitled Section
2. For developers
3. Untitled Section
6. Example Layouts
7. Web.Unimelb
https://gsnedders.html5.org/outliner/process.py?url=http%3A%2F%2Fweb.unimelb.edu.au
Great work Andy! Thanks!
@anormand Can this be written up as an article for the knowledge base? I don't know how we could enforce correct usage within the system itself.
The main problem seems to be that multiple components in the design system force the use of section
elements without considering semantics, like .half
. It's also common to see section
being used solely for its padding.
Ideally, we'd need to:
section
elements, and add utility class to serve the same purposesection
elements specifically (e.g. .half
)This is similar to what we did with aside
. It's no easy task, but might as well make it an official issue.
Problem The current templates contain multiple h1 tags
Impact There are currently no known implementations of the outline algorithm in graphical browsers or assistive technology user agents.
"There are no implementations of the outline algorithm in browsers or other user agents and there is unlikely to be as there is no requirements on user agents to implement it. There are a few 3rd party implementations in JavaScript (demos) and one in XSLT in ePub. (this is used to produce a table of contents for a book).
It will probably not be dropped from the spec as features are dropped when they have implementation requirements but no implementations, this is not the case for the outline algorithm (there are no requirements).
There are requirements on user agents to map heading levels in acc APIs based on the headings outline depth http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-implicit-aria-semantics
These have not been implemented because they rely on the outline algorithm being implemented (which is not a requirement and browser vendors have shown no intention to implement) I am in the process of talking with browser acc implementers to drop these requirements from the html spec."
See: http://webaim.org/discussion/mail_thread?thread=6343
Suggested resolution
Devise a heading schema that has proper semantic structure.
Example
Change:
To:
Note: I have an Excel spreadsheet with more examples