On Thu, 19 Jun 2008 23:44:05 +0200, Cameron McCormack <[EMAIL PROTECTED]> wrote:
> Erik Dahlström: >> The first instanceof test returns true in Opera 9.5, the second one >> false, >> in accordance with the Ecmascript 262 spec AFAIK. There's no multiple >> inheritance in Ecmascript. > > I don’t think it’s necessarily in accordance with ECMA-262. That spec > doesn’t say how instanceof should behave when you have a host object on > the RHS. > > It seems natural to me for the second one to return true, too. I agree that that seems logical, and it does seem to apply to some of the SVG interfaces, though not all. ... > Is that how you think it should work? I’d appreciate your input for Web > IDL. It's clearly desirable to be able to add custom methods and data on any of the svg interfaces. I'll see what can be done to fix this. > And are there any rules for interfaces that cannot be constructed? For > example I notice that: > > Node.protoype.abc = 123; > alert(document.abc); > > does work in an SVG document. Indeed. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed ------------------------------------ ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

