Closed Bug 626911 Opened 13 years ago Closed 13 years ago

FF3 HTML5 Parser, using <article> or <section> inside a <a> breaks the DOM

Categories

(Core :: DOM: HTML Parser, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jc, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; fr-fr) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

Putting some <article> or <section> inside a <a> element is breaking the DOM : <article>'s children are out of it, the <a> is some kind of duplicated... and so the style is not applied.

Reproducible: Always

Steps to Reproduce:
1. Use FF 3
2. open the page http://zeedev.aaz.fr/ff-parser-bug/
3. Have a look at the page and the DOM
Actual Results:  
Lorem ipsum is not red, the dom is changed

Expected Results:  
Lorem ipsum should be red, the dom is ok
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Version: unspecified → Trunk
If you're running 1.9.2, you're not using the HTML5 parser.

The testcase works fine for me on trunk, with the HTML5 parser.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
Does it mean HTML5 parser is for FF4 only ?
(In reply to comment #2)
> Does it mean HTML5 parser is for FF4 only ?

Yes. Changing the parser in Firefox 3.5.x or 3.6.x is out of scope. (The scope being security and stability fixes.)
Ok, I understand. That's a pity since this bug is kind of breaking the DOM and it seems that there is no work around for it.

Anyway, thanks for your responsiveness :-)
You need to log in before you can comment on or make changes to this bug.