On Wed, 04 Jan 2012 11:18:34 +0100, <[email protected]> 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: [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:
[email protected]
[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/