Thanks Erik. It's surprising from Opera, usually so compliant. One more reason not to extend prototypes probably. Yannick.
----- Mail original ----- De: "Erik Dahlstrom" <e...@opera.com> À: svg-developers@yahoogroups.com Envoyé: Jeudi 5 Janvier 2012 15:03:28 Objet: Re: [svg-developers] NodeList.prototype in opera On Wed, 04 Jan 2012 11:18:34 +0100, < yannick.bocha...@free.fr > wrote: > Hi, > I know it's not recommended to extend the prototype of hosted objects, > but I'd like to understand why Opera let us access the prototype of > NodeList but just ignore it : > > NodeList.prototype.myExtendedMethod = function() {}; > alert(document.querySelectorAll('a').myExtendedMethod); //undefined > > This is not a SVG issue but I didn't found any resource on the web > (except this one without any answer), and I know there are experts in > opera browser in this mailing-list. > Thanks in advance for your help ! > Cheers That is a known issue. Currently tracked as bug CORE-26489. The selectors API methods in the spec used to return "StaticNodeList" objects. This was changed later on to be "NodeList". That's part of the reason why. -- 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: svg-developers-unsubscr...@yahoogroups.com -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: svg-developers-dig...@yahoogroups.com svg-developers-fullfeatu...@yahoogroups.com <*> To unsubscribe from this group, send an email to: svg-developers-unsubscr...@yahoogroups.com <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/