Closed Bug 546436 Opened 15 years ago Closed 15 years ago

Wrong handling of -- in HTML Comments

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 214476

People

(Reporter: e7online, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.9.1.8pre) Gecko/20100111 SeaMonkey Build Identifier: If you put -- between <!-- and -->, the parsing isn't predictable. Reproducible: Always Steps to Reproduce: a -- b -- <!-- c -- d --> -- e -- f<br/> <b>a</b> -- <b>b</b> -- <!-- <b>c</b> -- <b>d</b> --> e -- f Actual Results: Displayed: a -- b -- b -- d --> e -- f Copy to Clipboard: a -- b -- -- e -- f a -->b -- d --> e -- f Expected Results: a b e f a b e f
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Verified. Note that the parsing is in fact quite predictable if you actually read the HTML and SGML specs...
Status: RESOLVED → VERIFIED
Oh, sorry :) Other question: Why is copy to clipboard different?
If you have set html5.enable to true, loading documents into a browsing context and parsing a clipboard paste go through different parsers (as an interim measure).
You need to log in before you can comment on or make changes to this bug.