On Mon, Jul 14, 2008 at 8:23 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> On Jul 14, 3:27 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
>> So I guess the question is which we think is best for the web, since at
>> this point we could do any of the three for 1.9.1, I think.
>
> The object sounds like the best solution to me. No nasty callbacks
> from DOM to JS.

Unless the object has a getter -- rarely useful for this, as far as I
can tell from reading the thread, but still something we need to
handle safely.

The object case is fine with respect to not getting "undefined" for
something not in the map, I think, since the spec can be worded with
respect to "has a property named" rather than just a blind "get".  All
script engines should be able to support that without difficulty,
given that .hasOwnProperty and the "in" operator have been part of
ECMA for like 9 years.

Mike
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to