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.
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.
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
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.
jband educated me. You can use "apply" or "call" and this works just fine. Just another invalid bug filed by me. ;)
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.