Re: partial interfaces, [NoInterfaceObject]

On Thu, 13 Feb 2014, Michael van Ouwerkerk wrote:
> 
> Hi, I'm looking for some guidance on the use of partial interfaces, and 
> also of [NoInterfaceObject]. This came up when reviewing feedback on 
> snippets of WebIDL in the Geolocation API.
> 
> It was suggested that this form:
> 
> [NoInterfaceObject]
> interface NavigatorGeolocation {
>   readonly attribute Geolocation geolocation;
> };
> Navigator implements NavigatorGeolocation;
> 
> Should be replaced by this form:
> 
> partial interface Navigator {
>   readonly attribute Geolocation geolocation;
> };

These are black-box indistinguishable, as far as I understand.

The reason Navigator uses the first one in the HTML spec is that there are 
actually two Navigator interfaces, one for Windows and one for Workers, 
and they pick and choose different sets of features from the various 
Navigator* fake interfaces.

It's just an editorial aid.

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

Received on Friday, 14 February 2014 17:52:20 UTC