Bug 13626
| Summary: | A weird error message when trying to invoke "new Element" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
| Component: | DOM | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
Oliver, do you think this has any value?
Ahmad Saleem
Is this still applicable or we can close this?
Alexey Proskuryakov
The error in shipping Safari/WebKit is now "TypeError: Illegal constructor".