[Bug 21555] Use of IDL arrays for keyPath values is underdefined

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21555

--- Comment #12 from Boris Zbarsky <bzbarsky@mit.edu> ---
> I believe that using DOMString[] in the IDL would be satisfied by an
> implementation that returned a DOMStringList

No, it wouldn't.  There are specific implementation requirements on IDL arrays
that DOMStringList doesn't satisfy (as a simple example, the prototype chain is
wrong).

> ISTM that having a way to say "just returns a native array"

Agreed, in general.  Basically, we want something like sequence<> but that
doesn't imply creating a new object each time...

On the other hand, doing keyPath that way does mean its unreliable if anyone
else gets their hands on the objects.  Not sure whether that matters.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 3 April 2013 19:14:02 UTC