Bug 13480

Summary: window.Attr is undefined
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: DOMAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
URL: javascript:alert(window.Attr)
Bug Depends on:    
Bug Blocks: 4986    
Attachments:
Description Flags
proposed fix hyatt: review+

Description Alexey Proskuryakov 2007-04-25 04:06:40 PDT
This causes a problem with bindows.net, which attempts to manipulate Attr.prototype.
Comment 1 Alexey Proskuryakov 2007-04-25 13:31:14 PDT
Created attachment 14184 [details]
proposed fix

Added a bunch of new global constructors. Leaving it to the reviewer to decide whether this is appropriate during stabilization.

It seems like we have a terminology problem somewhere. Invoking "new Element" results in a weird error message: "TypeError: Value [object ElementConstructor] (result of expression window.Element) is not a constructor. Cannot be used with new."
Comment 2 Dave Hyatt 2007-05-07 22:07:29 PDT
Comment on attachment 14184 [details]
proposed fix

r=me
Comment 3 Alexey Proskuryakov 2007-05-08 11:04:17 PDT
Committed revision 21308.

Filed bug 13626 for the error message.