Bug 13626 - A weird error message when trying to invoke "new Element"
Summary: A weird error message when trying to invoke "new Element"
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Nobody
URL: javascript:new Element
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-08 10:34 PDT by Alexey Proskuryakov
Modified: 2023-02-20 10:03 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2007-05-08 10:34:11 PDT
When executing the code in bug URL, the following message appears in JavaScript console: "TypeError: Value [object ElementConstructor] (result of expression Element) is not a constructor. Cannot be used with new."

It seems confusing to say that ElementConstructor is not a constructor.

Firefox says: 'Object cannot be created in this context" code: "9'.
Comment 1 Alexey Proskuryakov 2008-10-02 07:36:28 PDT
Oliver, do you think this has any value?
Comment 2 Ahmad Saleem 2023-02-18 06:25:37 PST
Is this still applicable or we can close this?
Comment 3 Alexey Proskuryakov 2023-02-20 10:03:30 PST
The error in shipping Safari/WebKit is now "TypeError: Illegal constructor".