From f1019cde81385bbbdb890c2038af7e703a22071b Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Tue, 18 Apr 2017 15:19:29 +0200 Subject: [PATCH] Editorial: make domintro distinguish between window and self A lot of these properties work on workers too. --- source | 114 ++++++++++++++++++++++++++------------------------------- 1 file changed, 51 insertions(+), 63 deletions(-) diff --git a/source b/source index a2d9a2189ec..3a8725ba580 100644 --- a/source +++ b/source @@ -86449,19 +86449,16 @@ interface NavigatorOnLine { };
- -
window . navigator . onLine
+
self . navigator . onLine
-

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

The events online and offline are fired when the value of this attribute changes.

-
-
@@ -91598,54 +91595,43 @@ interface NavigatorID { and unknown versions should always be assumed to be fully compliant.

- -
window . navigator . appCodeName
-
-

Returns the string "Mozilla".

-
- -
window . navigator . appName
-
-

Returns the string "Netscape".

-
- -
window . navigator . appVersion
-
-

Returns the version of the browser.

-
- -
window . navigator . platform
-
-

Returns the name of the platform.

-
- -
window . navigator . product
-
-

Returns the string "Gecko".

-
- -
window . navigator . productSub
-
-

Returns either the string "20030107", or the string "20100101".

-
- -
window . navigator . userAgent
-
-

Returns the complete `User-Agent` header.

-
- -
window . navigator . vendor
-
-

Returns either the empty string, the string "Apple Computer, Inc.", or - the string "Google Inc.".

-
- -
window . navigator . vendorSub
-
-

Returns the empty string.

-
- - +
self . navigator . appCodeName
+

Returns the string "Mozilla".

+ +
self . navigator . appName
+

Returns the string "Netscape".

+ +
self . navigator . appVersion
+

Returns the version of the browser.

+ +
self . navigator . platform
+

Returns the name of the platform.

+ +
self . navigator . product
+

Returns the string "Gecko".

+ +
window . navigator . productSub
+

Returns either the string "20030107", or the string "20100101".

+ +
self . navigator . userAgent
+

Returns the complete `User-Agent` header.

+ +
window . navigator . vendor
+

Returns either the empty string, the string "Apple Computer, Inc.", + or the string "Google Inc.".

+ +
window . navigator . vendorSub
+

Returns the empty string.

@@ -91767,18 +91753,19 @@ interface NavigatorLanguage { };
+
self . navigator . language
+

Returns a language tag representing the user's preferred language.

-
window . navigator . language
+
self . navigator . languages
-

Returns a language tag representing the user's preferred language.

-
+

Returns an array of language tags representing the user's preferred languages, with the most + preferred language first.

-
window . navigator . languages
-
-

Returns an array of language tags representing the user's preferred languages, with the most preferred language first.

-

The most preferred language is the one returned by navigator.language.

+

The most preferred language is the one returned by navigator.language.

-

A languagechange event is fired at the @@ -98036,9 +98023,10 @@ interface NavigatorConcurrentHardware { };

-
window . navigator . hardwareConcurrency
+
self . navigator . hardwareConcurrency
-
Returns the number of logical processors potentially available to the user agent.
+

Returns the number of logical processors potentially available to the user agent.