Closed Bug 96377 Opened 23 years ago Closed 23 years ago

XBL can't override DOM methods/properties.

Categories

(Core :: XBL, defect)

x86
Windows 2000
defect
Not set
normal

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.
Keywords: regression
Whiteboard: [xbl1.0]
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
Closed: 23 years ago
Resolution: --- → INVALID
verify
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.