Bug 13626

Summary: A weird error message when trying to invoke "new Element"
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, oliver
Priority: P4    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
URL: javascript:new Element

Alexey Proskuryakov
Reported 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'.
Attachments
Alexey Proskuryakov
Comment 1 2008-10-02 07:36:28 PDT
Oliver, do you think this has any value?
Ahmad Saleem
Comment 2 2023-02-18 06:25:37 PST
Is this still applicable or we can close this?
Alexey Proskuryakov
Comment 3 2023-02-20 10:03:30 PST
The error in shipping Safari/WebKit is now "TypeError: Illegal constructor".
Note You need to log in before you can comment on or make changes to this bug.