- From: <bugzilla@jessica.w3.org>
- Date: Tue, 11 Dec 2012 00:55:43 +0000
- To: public-script-coord@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16767 --- Comment #20 from Boris Zbarsky <bzbarsky@mit.edu> --- > What is the desired behaviour here if you pass in a say Int32Array? Should it > select the sequence<> overload, and run a bit slower? Or should it throw? Current spec says select the sequence<> overload, and it what at least Gecko implements. I haven't checked other browsers offhand... > Is it maybe not worth supporting this automatically, and instead requiring the > spec author to have an explicit overload to take a NodeList? I have no problem with converting platform objects that have indexed properties to sequences. I don't even have a problem with doing it for platform objects that _don't_ have indexed properties. Given that overload resolution and union subtype conversions define an order in which you try things, I don't really see a problem with having two things that can both convert to sequence be distinguishable. After all, we distinguish between all sorts of stuff that can convert to string! -- You are receiving this mail because: You are on the CC list for the bug.
Received on Tuesday, 11 December 2012 00:55:46 UTC