All users were logged out of Bugzilla on October 13th, 2018

document.createElement("<x>") does not throw in quirks mode

RESOLVED FIXED in mozilla2.0b2

Status

()

RESOLVED FIXED
10 years ago
8 years ago

People

(Reporter: annevk, Assigned: Ms2ger)

Tracking

({dev-doc-complete})

unspecified
mozilla2.0b2
dev-doc-complete
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 2 obsolete attachments)

(Reporter)

Description

10 years ago
In both Opera and WebKit-based browsers document.createElement("<x>") gives you an INVALID_CHARACTER_ERR regardless of the rendering mode. Gecko only throws in standards mode.

http://software.hixie.ch/utilities/js/live-dom-viewer/?%3Cscript%3Ew%28document.createElement%28%22%3Cx%3E%22%29%29%3C%2Fscript%3E
IIRC, this was added for behind-a-firewall IE compat.
(Assignee)

Comment 3

8 years ago
Created attachment 452545 [details] [diff] [review]
Patch v1
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Attachment #452545 - Flags: review?(jonas)
(Assignee)

Updated

8 years ago
Keywords: checkin-needed, dev-doc-needed
this is bitrotted against current m-c, please provide an updated patch and
re-ask c-n.
Keywords: checkin-needed
(Assignee)

Comment 5

8 years ago
Created attachment 455879 [details] [diff] [review]
Patch v2 (merged to tip)

r=jonas
Attachment #452545 - Attachment is obsolete: true
(Assignee)

Updated

8 years ago
Keywords: checkin-needed
(Assignee)

Comment 6

8 years ago
Created attachment 455881 [details] [diff] [review]
Patch v2.1, merged to tip

Fixed a typo.
Attachment #455879 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/ecdf587c02d0
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Flags: in-testsuite+
Keywords: checkin-needed
OS: Linux → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3b2
(Assignee)

Comment 8

8 years ago
I added a note to <https://developer.mozilla.org/en/Firefox_4_for_developers#section_8>. Apparently, this quirk wasn't actually documented anywhere, so I don't think anything else is needed.
Keywords: dev-doc-needed → dev-doc-complete

Comment 9

8 years ago
> IIRC, this was added for behind-a-firewall IE compat.

FYI, public sites were (are?) also affected: <https://bugs.webkit.org/show_bug.cgi?id=25893>. As Firefox is removing this quirk, we likely won't add it to WebKit.

Comment 10

8 years ago
It is still not giving any warnings or errors in the firebug console when this happens. As of FF4b12
That sounds like a problem with Firebug; if you actually look at our error console you'll see an exception is thrown.
You need to log in before you can comment on or make changes to this bug.