Allow <section> elements to have first-child <header>'s in place of <h1>
Closed this issue · 1 comments
Seems like the <section>-based elements should be allowed to have a first-child <header> element instead of an <h1> element since this is supported and recommended by the HTML5 spec:
"The header element typically contains the headings for a section (an h1-h6 element or hgroup element), along with content such as introductory material or navigational aids for the section."
The rest of the specification looks pretty good though. Nice work!
Hi @mxdubois,
Thanks for the suggestion, and the kind words.
At this time, I'm inclined to continue to leave <header> out of the HTMLBook specification, as the HTML5 specification makes clear that it is optional to use it for section headings ("A header element is intended to usually contain the section's heading (an h1–h6 element), but this is not required."; http://www.w3.org/TR/html5/sections.html#the-header-element), and I don't think its inclusion adds enough additional semantic value to offset the greater complexity of markup.
But this is something we may certainly reevaluate in the future, especially if the HTML5 specs around <header> continue to evolve.
Best,
Sanders