News for hackers. Stuff that matters.
Re:Tota11y by ohitsdom on Monday June 29, 2015 @08:11AM (#9797539)
I read that. I still don't understand how an h4 directly under an h2 impairs accessibility.
Re:Tota11y by edraferi on Monday June 29, 2015 @09:23AM (#9797864)
Perhaps screen readers can be set to read out the major headings to help people figure out what part of the document they want to read. This would have a level of detail or verbosity control.

First you read h1, find the right header. Then h2 with 2 levels of detail, which hits h2 and h3. You miss the sub-section you wanted because it was marked h4 instead of h3.

It's a broken tree structure... that'll cause problems any time somebody wants to do a logical traversal.

Re:Tota11y by steveax on Monday June 29, 2015 @10:07AM (#9798129)
Yes. Screen readers load the page contents into a buffer and allow users to scan headings, links, etc. having a broken outline structure is potentially confusing [1]. This is also why descriptive linked text is important (ie: no "click here") [2]

[1]: http://www.w3.org/TR/WCAG20-TECHS/H42.html [2]: http://www.w3.org/TR/WCAG20-TECHS/H30.html

Re:Tota11y by russelluresti on Tuesday June 30, 2015 @01:26PM (#9806936)
Screen readers do indeed have a feature that allows the users to browse just the headings.

As others have mentioned, it's likely flagged as an accessibility issue since having an h4 follow an h2 indicates a broken document structure.

It's also probably included in the tool because things like that usually (though not always) mean that the developer is just using the h4 tag based on how it looks as opposed to actual semantic meaning, and the tool is designed to get you to put more thought into what you're actually building.

Re:Tota11y by a3n on Monday June 29, 2015 @08:16AM (#9797568)
1.2

1.2.1

1.3

1.3.1.1