[Bug 12247] <section> is not associated with the conceptual section it creates

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12247

Philip Jägenstedt <philipj@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |philipj@opera.com

--- Comment #1 from Philip Jägenstedt <philipj@opera.com> 2011-03-05 11:09:42 UTC ---
I extended Geoffrey's
<http://hg.gsnedders.com/anolis2/file/0ae85731c3ae/src/lib/processes/outliner.py>
to also keep track of the node associations that the spec mentions (code
available if anyone wants it). Using that, I tried splitting the following
document into sections as defined by the outlining algorithm:

<!doctype html>
<head><title></title></head>
<body>
<section id="main">
  <h1>Main</h1>
  Introduction
  <section id="first">
    <h1>First</h1>
    Foofoo <b>bold</b>
  </section>
  <section id="second">
    <h1>Second</h1>
    Barbar <i>italic</i>
  </section>
</section>
</body>
</html>

The resulting list of conceptual sections are these:

Section created for outlinee <body>. Associated nodes:
<body>
<section id=main>
  </section>


</body>

Section created for outlinee <section id=main>. Associated nodes:
<h1>Main</h1>
  Introduction
  <section id=first>
    </section>
  <section id=second>
    </section>


Section created for outlinee <section id=first>. Associated nodes:
<h1>First</h1>
    Foofoo <b>bold</b>


Section created for outlinee <section id=second>. Associated nodes:
<h1>Second</h1>
    Barbar <i>italic</i>


What I consider a bug here is that the <section> elements aren't associated
with the section they create, rather they are associated with their parent
elements.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 5 March 2011 11:09:47 UTC