Closed
Bug 304533
Opened 20 years ago
Closed 20 years ago
crash on document.createElement with illegal tag name
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 285166
People
(Reporter: rahul.narain, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
|
134 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.10) Gecko/20050717 Firefox/1.0.6
If a script tries to create an element with an illegal tag name, for example
"#text", Firefox crashes.
Reproducible: Always
Steps to Reproduce:
1. Make a HTML page containing <script>document.createElement("#text");</script>
2. Open in Firefox.
3.
Actual Results:
Firefox crashes.
Expected Results:
Firefox should catch the error and stay alive.
| Reporter | ||
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
Works for me.
Please try with a newer build of firefox such as deer park alpha 2 or later.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050812
Firefox/1.0+ ID:2005081216
Comment 3•20 years ago
|
||
works on trunk, crashs on 1.7 branch
wfm Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.9a1) Gecko/20050812 Firefox/1.0+
Error: uncaught exception: [Exception... "String contains an invalid character"
code: "5" nsresult: "0x80530005 (NS_ERROR_DOM_INVALID_CHARACTER_ERR)"
location: "https://bugzilla.mozilla.org/attachment.cgi?id=192586 Line: 3"]
crash: TB8336498M
Mozilla/5.0 (Windows; U; Win98; de-DE; rv:1.7.10) Gecko/20050715 Firefox/1.0.6
Keywords: testcase
Updated•20 years ago
|
Version: Trunk → 1.7 Branch
Duplicate of bug 285166.
Comment 5•20 years ago
|
||
*** This bug has been marked as a duplicate of 285166 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•