[html5] r2399 - [e] (0) Split Navigator so that Workers can refer to it.

whatwg at whatwg.org whatwg at whatwg.org
Wed Nov 12 17:23:36 PST 2008


Author: ianh
Date: 2008-11-12 17:23:35 -0800 (Wed, 12 Nov 2008)
New Revision: 2399

Modified:
   index
   source
Log:
[e] (0) Split Navigator so that Workers can refer to it.

Modified: index
===================================================================
--- index	2008-11-12 20:15:03 UTC (rev 2398)
+++ index	2008-11-13 01:23:35 UTC (rev 2399)
@@ -17,7 +17,7 @@
   <div class=head>
    <p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <h1>HTML 5</h1>
-   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 12 November 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 13 November 2008</h2>
    <p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <dl><dt>Multiple-page version:</dt>
@@ -33914,24 +33914,38 @@
   handlers:</p>
 
   <pre class=idl>interface <dfn id=navigator>Navigator</dfn> {
-  // client identification<!--
+  // objects implementing this interface also implement the interfaces given below
+};
+
+[NoInterfaceObject] interface <dfn id=navigatorid>NavigatorID</dfn> {<!--
   readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;-->
   readonly attribute DOMString <a href=#dom-navigator-appname title=dom-navigator-appName>appName</a>;
   readonly attribute DOMString <a href=#dom-navigator-appversion title=dom-navigator-appVersion>appVersion</a>;
   readonly attribute DOMString <a href=#dom-navigator-platform title=dom-navigator-platform>platform</a>;
   readonly attribute DOMString <a href=#dom-navigator-useragent title=dom-navigator-userAgent>userAgent</a>;
+};
 
-  // system state
+[NoInterfaceObject] interface <dfn id=navigatoronline>NavigatorOnLine</dfn> {
   readonly attribute boolean <a href=#dom-navigator-online title=dom-navigator-onLine>onLine</a>;
+};
+
+[NoInterfaceObject] interface <dfn id=navigatorbrowsingcontextabilities>NavigatorBrowsingContextAbilities</dfn> {
+  // content handler registration
   void <a href=#dom-navigator-registerprotocolhandler title=dom-navigator-registerProtocolHandler>registerProtocolHandler</a>(in DOMString protocol, in DOMString url, in DOMString title);
   void <a href=#dom-navigator-registercontenthandler title=dom-navigator-registerContentHandler>registerContentHandler</a>(in DOMString mimeType, in DOMString url, in DOMString title);
-
-  // abilities<!--
-  XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
+<!--  XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
   readonly attribute <span>MimeTypeArray</span> <span title="dom-navigator-mimeTypes">mimeTypes</span>;-->
+  // abilities
   short <a href=#dom-navigator-canplaytype title=dom-navigator-canPlayType>canPlayType</a>(in DOMString type);
 };</pre>
 
+  <p>Objects implementing the <code><a href=#navigator>Navigator</a></code> interface must
+  also implement the <a href=#navigatorid>NavigatorID</a>,
+  <a href=#navigatoronline>NavigatorOnLine</a>, and
+  <a href=#navigatorbrowsingcontextabilities>NavigatorBrowsingContextAbilities</a> interfaces. (These
+  interfaces are defined separately so that other specifications can
+  re-use parts of the <code><a href=#navigator>Navigator</a></code> interface.)</p>
+
    <!-- XXX also, see window.external.AddSearchProvider() and similar DOM APIs from IE -->
 
    <!-- XXX also, could expose languages:

Modified: source
===================================================================
--- source	2008-11-12 20:15:03 UTC (rev 2398)
+++ source	2008-11-13 01:23:35 UTC (rev 2399)
@@ -38603,24 +38603,38 @@
   handlers:</p>
 
   <pre class="idl">interface <dfn>Navigator</dfn> {
-  // client identification<!--
+  // objects implementing this interface also implement the interfaces given below
+};
+
+[NoInterfaceObject] interface <dfn>NavigatorID</dfn> {<!--
   readonly attribute DOMString <span title="dom-navigator-appCodeName">appCodeName</span>;-->
   readonly attribute DOMString <span title="dom-navigator-appName">appName</span>;
   readonly attribute DOMString <span title="dom-navigator-appVersion">appVersion</span>;
   readonly attribute DOMString <span title="dom-navigator-platform">platform</span>;
   readonly attribute DOMString <span title="dom-navigator-userAgent">userAgent</span>;
+};
 
-  // system state
+[NoInterfaceObject] interface <dfn>NavigatorOnLine</dfn> {
   readonly attribute boolean <span title="dom-navigator-onLine">onLine</span>;
+};
+
+[NoInterfaceObject] interface <dfn>NavigatorBrowsingContextAbilities</dfn> {
+  // content handler registration
   void <span title="dom-navigator-registerProtocolHandler">registerProtocolHandler</span>(in DOMString protocol, in DOMString url, in DOMString title);
   void <span title="dom-navigator-registerContentHandler">registerContentHandler</span>(in DOMString mimeType, in DOMString url, in DOMString title);
-
-  // abilities<!--
-  XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
+<!--  XXX cookieEnabled geolocator javaEnabled mozIsLocallyAvailable plugins preference
   readonly attribute <span>MimeTypeArray</span> <span title="dom-navigator-mimeTypes">mimeTypes</span>;-->
+  // abilities
   short <span title="dom-navigator-canPlayType">canPlayType</span>(in DOMString type);
 };</pre>
 
+  <p>Objects implementing the <code>Navigator</code> interface must
+  also implement the <span>NavigatorID</span>,
+  <span>NavigatorOnLine</span>, and
+  <span>NavigatorBrowsingContextAbilities</span> interfaces. (These
+  interfaces are defined separately so that other specifications can
+  re-use parts of the <code>Navigator</code> interface.)</p>
+
    <!-- XXX also, see window.external.AddSearchProvider() and similar DOM APIs from IE -->
 
    <!-- XXX also, could expose languages:




More information about the Commit-Watchers mailing list