Re: [PrototypeRoot]

On Sat, 7 Mar 2009, Cameron McCormack wrote:
> 
> Done:
> 
>   The value of the internal [[Class]] property of a host object is
>   determined as follows:
>     * If the host object implements a single interface, then the value
>       of the internal [[Class]] property MUST be the identifier of
>       that interface.

I think it would make sense to exclude [NoPrototypeObject] interfaces from 
consideration here.


> Note that this still technically does not mean you can guarantee that
> the NodeList returned by querySelectorAll() has [[Class]] == "NodeList",
> since it could be that that host object implements another interface,
> which might be required by another spec, or perhaps just because the
> implementation wants to.

IMHO this is a problem. I don't think that UA extensions should affect the 
[[Class]], and I think that other specs should have a way (e.g. 
[NoPrototypeObject]) of always making sure they don't affect the [[Class]] 
of existing stuff.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 8 March 2009 00:04:10 UTC