Closed Bug 489532 Opened 16 years ago Closed 14 years ago

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

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b2

People

(Reporter: annevk, Assigned: Ms2ger)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 2 obsolete files)

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.
Attached patch Patch v1 (obsolete) — Splinter Review
Assignee: nobody → Ms2ger
Status: NEW → ASSIGNED
Attachment #452545 - Flags: review?(jonas)
this is bitrotted against current m-c, please provide an updated patch and re-ask c-n.
Keywords: checkin-needed
Attached patch Patch v2 (merged to tip) (obsolete) — Splinter Review
r=jonas
Attachment #452545 - Attachment is obsolete: true
Keywords: checkin-needed
Fixed a typo.
Attachment #455879 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite+
Keywords: checkin-needed
OS: Linux → All
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3b2
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.
> 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.
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.

Attachment

General

Created:
Updated:
Size: