[html5] Using <section> and <h1> ? Theoretical?

Steve Faulkner faulkner.steve at gmail.com
Wed May 14 02:30:10 PDT 2014



HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>

On 13 May 2014 20:02, <help-request at lists.whatwg.org> wrote:

> On Fri, 9 May 2014, Micky Hulse wrote:
> >
> > Ok, so, W3C is changing the language, but what is WHATWG doing (or, have
> > plans to do)?
> As you pointed out, some people are "hating" on <section> and <h1> and so
> on. It's not really clear to me why; the concerns haven't really been well
> explained IMHO. There's no plan to change any of this in the WHATWG spec.
> (I'm especially confused because this style actually comes from XHTML2,
> which was championed by the W3C.)

Nobody is 'hating' on the outline, pretending in the whatwg html spec that
the outline does something it doesn't is bad for users and bad for authors,
since when is coding for unicorns a good idea?

if/when the outline is implemented and has the effect on the semantics of
headings as it does in theory, the w3c html spec author advice will be

> One thing to bear in mind is that in legacy browsers that don't support
> style sheets, and in some accessibility tools that haven't yet been
> updated to match the HTML spec,

Correction: no browsers or AT have implemented the outline algorithm
accessibility semantics and from publicly recorded comments by implementers
[1] it appears unlikely they will as they have reservations about its
utility as specced.

> the "<section>" elements are "invisible"
> (unknown, treated like <div>). This leads to the <h1>s being treated as
> page headers in those UAs. To avoid this problem, while we wait for
> support to be more widely available, my recommendation is to use <h2>-<h6>
> with <section>,

Its great to see you advising authors to code for users and reality, advice
which is in agreement with the W3C HTML spec:

"There are currently no known implementations of the outline algorithm in
graphical browsers or assistive technology user agents, although the
algorithm is implemented in other software such as conformance checkers.
Therefore the outline algorithm cannot be relied upon to convey document
structure to users. Authors are advised to use heading rank (h1-h6) to
convey document structure." [2]

[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=25003
[2] http://www.w3.org/html/wg/drafts/html/master/sections.html#outlines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20140514/c9f36c6d/attachment.htm>

More information about the Help mailing list