Closed Bug 264302 Opened 20 years ago Closed 20 years ago

uncaught exception - Object cannot be created in this context - NS_ERROR_DOM_NOT_SUPPORTED_ERR

Categories

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

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 68193

People

(Reporter: aha, Unassigned)

References

()

Details

Attachments

(1 file, 1 obsolete file)

513 bytes, application/xhtml+xml
Details
2004101006/trunk/W2K

While visiting this page, this error appears in JS console:
  Error: uncaught exception: [Exception... "Object cannot be created in this 
  context"  code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)"  
  location: "http://c1.navrcholu.cz/code?site=69287;t=lb14 Line: 34"]

Page is rendered in Standards compliance mode, contains div with inline style
display:none and external javascript is trying to create img element inside it.

Maybe related to bryner's bug 60212, because bug 194648 with similar error was
duped against it.
Attached file simplified testcase (obsolete) —
"Simplified" would mean the JS is simplified too.  As it is, it's not clear
which part of the JS is responsible.  Is the <noscript> part needed, for that
matter?
Keywords: testcase
Attached file simplified testcase ?
Boris, is this better?
Attachment #162044 - Attachment is obsolete: true
Document.write is not supported in XHTML.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
So uncaught exceptions in Mozilla are okay? (just asking, because I think about
it as about errors).
The exception is uncaught by the page, not by Mozilla.

Yes, Mozilla's behavior here is correct.  There is indeed an error, and it's an
error in the page -- it's trying to use document.write in an XHTML document.
Status: RESOLVED → VERIFIED
Dup, actually...
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---

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

Attachment

General

Creator:
Created:
Updated:
Size: