W3C home > Mailing lists > Public > www-svg@w3.org > December 2013

Re: Relaxing SVGList* item object equality in Blink/Chromium

From: Kouhei Ueno <kouhei@google.com>
Date: Thu, 12 Dec 2013 13:31:19 +0900
Message-ID: <CAPVAxLXp80Zwg7=R41SP=Jdoz4LmzM1MxQi=TEC_+_syQSnqhA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-svg <www-svg@w3.org>
Thanks for pointing it out.

Actually, indexed getters on SVG*List are not supported yet in the
current Blink implementation, but the refactoring plan is to have
"list[0] !== list[0]", as it falls back to implementation of
getItem().

2013/12/12 Boris Zbarsky <bzbarsky@mit.edu>:
> On 12/11/13 11:16 PM, Robert O'Callahan wrote:
>>
>> On Thu, Dec 12, 2013 at 4:45 PM, Kouhei Ueno <kouhei@google.com
>>     Would your opinion be different for "list.getItem(0) !==
>>     list.getItem(0)"?
>>
>> I think that's still bad, but maybe less bad.
>
>
> Given that list.getItem(0) is defined to return the same thing as list[0] as
> long as list.length >= 1 for the lists in question, what do you plan to have
> happen for list[0] === list[0]?
>
> -Boris
>
>



-- 
Kouhei Ueno
Received on Thursday, 12 December 2013 08:20:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:49 UTC