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 25393 - outline depth calculation should not include empty sections
Summary: outline depth calculation should not include empty sections
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 editorial
Target Milestone: ---
Assignee: steve faulkner
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: a11y
Depends on:
Blocks: 25394
  Show dependency treegraph
 
Reported: 2014-04-19 12:41 UTC by steve faulkner
Modified: 2015-06-19 14:25 UTC (History)
4 users (show)

See Also:


Attachments

Description steve faulkner 2014-04-19 12:41:51 UTC
Including sections without Hx leads to illogical outline depths for headings
http://www.w3.org/html/wg/drafts/html/master/sections.html#outline-depth

example:

<body>
<h1>heading</h1>

<section>
<section>
<section>
<h1>heading</h1>
</section>
</section>
</section>

results in 

<h1>
<h4>
</body>

given that use of sectioning elements in the wild are prone to this type of misuse, ignoring sections without headings seems prudent.
Comment 1 steve faulkner 2014-04-19 13:01:24 UTC
some data 252 HTML5 pages using the <section> element
http://www.html5accessibility.com/HTML5data/section/section.html
Comment 2 steve faulkner 2014-04-19 13:05:34 UTC
some data: 170 HTML5 pages that use the <article> element http://www.html5accessibility.com/HTML5data/article/index.html
Comment 3 steve faulkner 2014-04-22 19:21:47 UTC
modify outline depth concept to allow empty sections to be ignored when calculating outline depth and consequent acc layer level property

current text: 
"The outline depth of a heading content element associated with a section section is the number of sections that are ancestors of section in the outermost outline that section finds itself in when the outlines of its Document's elements are created, plus 1. The outline depth of a heading content element not associated with a section is 1."

http://www.w3.org/html/wg/drafts/html/master/sections.html#outline-depth
Comment 4 steve faulkner 2014-04-22 19:33:36 UTC
(In reply to steve faulkner from comment #3)
> modify outline depth concept to allow empty sections to be ignored when
> calculating outline depth and consequent acc layer level property
> 
> current text: 
> "The outline depth of a heading content element associated with a section
> section is the number of sections that are ancestors of section in the
> outermost outline that section finds itself in when the outlines of its
> Document's elements are created, plus 1. The outline depth of a heading
> content element not associated with a section is 1."
> 
> http://www.w3.org/html/wg/drafts/html/master/sections.html#outline-depth

also need to modify

"User agents should provide default headings for sections that do not have explicit section headings."
Comment 5 steve faulkner 2015-06-19 14:25:35 UTC
after discussion last year with hixie decided not a good idea