This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6750 - <header><blockquote><h1> issues
Summary: <header><blockquote><h1> issues
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-02 14:36 UTC by Simon Pieters
Modified: 2010-10-04 14:32 UTC (History)
3 users (show)

See Also:


Attachments

Description Simon Pieters 2009-04-02 14:36:28 UTC
Two issues:
1. <header>'s content model is wrong
2. outline algorithm is probably wrong


The spec says about <header>:

"Content model:
Flow content, including at least one descendant that is heading content, but no sectioning content descendants, no header element descendants, and no footer element descendants."

This means that

   <header><blockquote><h1>x</h1></blockquote></header>

is allowed, since blockquote is sectioning root but not sectioning content.

Testing with http://gsnedders.html5.org/outliner/ and http://james.html5.org/outliner.html it appears that the outline algorithm doesn't ignore sectioning roots that are descendants of <header>.
Comment 1 Simon Pieters 2009-04-02 15:24:13 UTC
The outline algorithm says

"For the purposes of document summaries, outlines, and the like, the text of header elements is defined to be the text of the highest ranked h1–h6 element descendant of the header element, if there are any such elements, and the first such element if there are multiple elements with that rank. If there are no such elements, then the text of the header element is the empty string."

This should ignore sectioning root subtrees.
Comment 2 Geoffrey Sneddon 2009-04-02 15:40:42 UTC
No, that's under "the header element", not "creating an outline".
Comment 3 Ian 'Hixie' Hickson 2009-04-30 18:23:12 UTC
As far as I can tell this is now fixed, since <hgroup> can only contain h1-h6, and the new <header> isn't sectioning.