W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2014

Re: partial interfaces, [NoInterfaceObject]

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 14 Feb 2014 17:51:57 +0000 (UTC)
To: Michael van Ouwerkerk <mvanouwerkerk@google.com>
cc: public-script-coord@w3.org
Message-ID: <alpine.DEB.2.00.1402141750300.31525@ps20323.dreamhostps.com>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:51 UTC