Closed Bug 766575 Opened 12 years ago Closed 12 years ago

Section XHR loading and parsing incorrect

Categories

(developer.mozilla.org Graveyard :: Wiki pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: davidwalsh, Assigned: davidwalsh)

References

Details

(Whiteboard: u=contributor c=wiki s=2012-07-03 p=1)

I have a DE-locale document with the following content:

    <h1 id="Heading_1">Heading 1</h1>
    <h2 id="Heading_2">Heading 2</h2>
    <h3 id="Heading_3">Heading 3</h3>
    <h4 id="Heading_4">Heading 4</h4>
    <h5 id="Heading_5">Heading 5</h5>
    <h6 id="Heading_6xx">Heading 6xx</h6>
    <p>blah blah</p>

If I click the "Edit" link next to the "Heading 3" section, the following content is returned:

   <h3 id="Heading_3">Heading 3</h3>
   <h4 id="Heading_4">Heading 4</h4>
   <h5 id="Heading_5">Heading 5</h5>
   <h6 id="Heading_6xx">Heading 6xx</h6>
   <p>blah blah</p>

In theory, only the h3 element should be returned.
Blocks: 756263
An additional note:  If a "&nbsp;" is in the heading tag, I'm also seeing it in the section ID;  we'll want to prevent this.
Ignore previous comment;  the &nbsp; issue has been taken care of.
OK, I'm an idiot -- lessor headings *should* display under larger ones...duh.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Assignee: nobody → dwalsh
Whiteboard: u=contributor c=wiki s=2012-07-03 p=1
Version: Kuma → unspecified
Component: Website → Landing pages
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.