Skip to content

Commit

Permalink
Editorial: make domintro distinguish between window and self
Browse files Browse the repository at this point in the history
A lot of these properties work on workers too.
  • Loading branch information
annevk authored and zcorpan committed Apr 20, 2017
1 parent b6b3ba8 commit 126a60e
Showing 1 changed file with 51 additions and 63 deletions.
114 changes: 51 additions & 63 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -86434,19 +86434,16 @@ interface <dfn>NavigatorOnLine</dfn> {
};</pre>

<dl class="domintro">

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-onLine">onLine</code></dt>
<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-onLine">onLine</code></dt>

<dd>

<p>Returns false if the user agent is definitely offline (disconnected from the network).
Returns true if the user agent might be online.</p>

<p>The events <code data-x="event-online">online</code> and <code
data-x="event-offline">offline</code> are fired when the value of this attribute changes.</p>

</dd>

</dl>

<div w-nodev>
Expand Down Expand Up @@ -91583,54 +91580,43 @@ interface <dfn>NavigatorID</dfn> {
and unknown versions should always be assumed to be fully compliant.</p>

<dl class="domintro">

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-appCodeName">appCodeName</code></dt>
<dd>
<p>Returns the string "<code data-x="">Mozilla</code>".</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-appName">appName</code></dt>
<dd>
<p>Returns the string "<code data-x="">Netscape</code>".</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-appVersion">appVersion</code></dt>
<dd>
<p>Returns the version of the browser.</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-platform">platform</code></dt>
<dd>
<p>Returns the name of the platform.</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-product">product</code></dt>
<dd>
<p>Returns the string "<code data-x="">Gecko</code>".</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-productSub">productSub</code></dt>
<dd>
<p>Returns either the string "<code data-x="">20030107</code>", or the string "<code data-x="">20100101</code>".</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-userAgent">userAgent</code></dt>
<dd>
<p>Returns the complete `<code data-x="">User-Agent</code>` header.</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-vendor">vendor</code></dt>
<dd>
<p>Returns either the empty string, the string "<code data-x="">Apple Computer, Inc.</code>", or
the string "<code data-x="">Google Inc.</code>".</p>
</dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-vendorSub">vendorSub</code></dt>
<dd>
<p>Returns the empty string.</p>
</dd>


<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-appCodeName">appCodeName</code></dt>
<dd><p>Returns the string "<code data-x="">Mozilla</code>".</p></dd>

<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-appName">appName</code></dt>
<dd><p>Returns the string "<code data-x="">Netscape</code>".</p></dd>

<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-appVersion">appVersion</code></dt>
<dd><p>Returns the version of the browser.</p></dd>

<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-platform">platform</code></dt>
<dd><p>Returns the name of the platform.</p></dd>

<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-product">product</code></dt>
<dd><p>Returns the string "<code data-x="">Gecko</code>".</p></dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-productSub">productSub</code></dt>
<dd><p>Returns either the string "<code data-x="">20030107</code>", or the string "<code
data-x="">20100101</code>".</p></dd>

<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-userAgent">userAgent</code></dt>
<dd><p>Returns the complete `<code data-x="">User-Agent</code>` header.</p></dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-vendor">vendor</code></dt>
<dd><p>Returns either the empty string, the string "<code data-x="">Apple Computer, Inc.</code>",
or the string "<code data-x="">Google Inc.</code>".</p></dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-vendorSub">vendorSub</code></dt>
<dd><p>Returns the empty string.</p></dd>
</dl>

<div w-nodev>
Expand Down Expand Up @@ -91752,18 +91738,19 @@ interface <dfn>NavigatorLanguage</dfn> {
};</pre>

<dl class="domintro">
<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-language">language</code></dt>
<dd><p>Returns a language tag representing the user's preferred language.</p></dd>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-language">language</code></dt>
<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-languages">languages</code></dt>
<dd>
<p>Returns a language tag representing the user's preferred language.</p>
</dd>
<p>Returns an array of language tags representing the user's preferred languages, with the most
preferred language first.</p>

<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-languages">languages</code></dt>
<dd>
<p>Returns an array of language tags representing the user's preferred languages, with the most preferred language first.</p>
<p>The most preferred language is the one returned by <code data-x="dom-navigator-language">navigator.language</code>.</p>
<p>The most preferred language is the one returned by <code
data-x="dom-navigator-language">navigator.language</code>.</p>
</dd>

</dl>

<p class="note">A <code data-x="event-languagechange">languagechange</code> event is fired at the
Expand Down Expand Up @@ -98021,9 +98008,10 @@ interface <dfn>NavigatorConcurrentHardware</dfn> {
};</pre>

<dl class="domintro">
<dt><var>window</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn data-x="dom-navigator-hardwareConcurrency">hardwareConcurrency</code></dt>
<dt><var>self</var> . <code data-x="dom-navigator">navigator</code> . <code subdfn
data-x="dom-navigator-hardwareConcurrency">hardwareConcurrency</code></dt>

<dd>Returns the number of logical processors potentially available to the user agent.</dd>
<dd><p>Returns the number of logical processors potentially available to the user agent.</p></dd>
</dl>

<div w-nodev>
Expand Down

0 comments on commit 126a60e

Please sign in to comment.