Re: indexed properties on NodeLists and HTMLCollections

On 5/6/11 2:22 AM, Allen Wirfs-Brock wrote:
> function f() {
>     var myLocal = callSomeFunctionIDidntWriteThatReturnsSomeObject();
>     alert(myLocal.toString);  //built-in toString function
>     callSomeOtherFunctionIDidntWrite();
>     alert(myLocal.toString);   //displays some other value because a toString property was added to the myGlobal obj by the function
>     callAnotherFunctionIdontKnowMuchAbout();
>     alert(myLocal.toString);  //built-in toString function because the function deleted the property the new toString property from the obj
> }();

Sure, that's closer to how nodelists actually behave.

Waiting for that separate message, since the main issue here is not 
whether nodelists mutate but whether they can sanely be implemented in ES.

-Boris

Received on Friday, 6 May 2011 13:06:04 UTC