[Bug 25394] New: outline depth calculation should not include empty sections

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25394

            Bug ID: 25394
           Summary: outline depth calculation should not include empty
                    sections
           Product: WHATWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML
          Assignee: ian@hixie.ch
          Reporter: faulkner.steve@gmail.com
        QA Contact: contributor@whatwg.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org
        Depends on: 25393

+++ This bug was initially created as a clone of Bug #25393 +++

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Saturday, 19 April 2014 12:42:24 UTC