Closed Bug 750337 Opened 13 years ago Closed 13 years ago

document.createComment("--") fails

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 412257

People

(Reporter: michiel, Unassigned)

Details

Not sure where to file this bug, as there doesn't appear to be a "JS API" category for firefox. The following javascript fails with an error being thrown, even though there is no reason for it to: document.createComment("--"); In fact, any comment text with -- in it somewhere will lead to firefox throwing an error. However, firefox will happily parse actual HTML source that has '--' somewhere between <!-- and -->, and neither Chrome, Opera or IE throw errors when passed a comment string with '--' in it. It looks like this is a bug left in from how comments used to be parsed back in the day.
Status: NEW → RESOLVED
Closed: 13 years ago
Component: Untriaged → DOM
Product: Firefox → Core
QA Contact: untriaged → general
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.