Closed
Bug 96377
Opened 23 years ago
Closed 23 years ago
XBL can't override DOM methods/properties.
Categories
(Core :: XBL, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: hyatt, Assigned: jst)
References
()
Details
(Keywords: regression, Whiteboard: [xbl1.0])
Looks like XBL is unable to override DOM methods/properties. Go to the test case at the above URL, and click on the "Load Mozilla.Org" button. You should see mozilla.org load in the iframe underneath the button. It doesn't. Looks like the XPC prototype doesn't know about the DOM methods/properties.
Reporter | ||
Updated•23 years ago
|
Keywords: regression
Whiteboard: [xbl1.0]
Reporter | ||
Comment 1•23 years ago
|
||
Just give me a way to do this... that's all I need... I'm willing to deal with a custom syntax or something other than what I'm doing as long as there is a way.
Comment 2•23 years ago
|
||
Where are those properties, then (methods are just function-valued props)? Are they perhaps directly on the element's js object? hyatt, what does x.hasOwnProperty('getAttribute') return for an element x? /be
Reporter | ||
Comment 3•23 years ago
|
||
Well, I can see that XBL's setAttribute method got called, so technically my method *is* overriding. It just has no way of calling its base method that I can discover.
Reporter | ||
Comment 4•23 years ago
|
||
jband educated me. You can use "apply" or "call" and this works just fine. Just another invalid bug filed by me. ;)
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•