Closed Bug 304533 Opened 19 years ago Closed 19 years ago

crash on document.createElement with illegal tag name

Categories

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

1.7 Branch
x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 285166

People

(Reporter: rahul.narain, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

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.
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
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
Version: Trunk → 1.7 Branch
Duplicate of bug 285166.

*** This bug has been marked as a duplicate of 285166 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: