Skip to content

Commit

Permalink
[] (3) Default navigator.language to 'en' instead of null.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17878
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7746 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 8, 2013
1 parent ea7fe88 commit 99327d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions complete.html
Expand Up @@ -73140,12 +73140,12 @@ <h5 id=language-preferences><span class=secno>7.5.1.2 </span>Language preference

<dl><!--
<dt><dfn title="dom-navigator-browserLanguage"><code>browserLanguage</code></dfn></dt> <!- - Opera and IE only - ->
<dd><p>Must return either null or a language tag representing the language the browser uses in its interface.</p></dd>
<dd><p>Must return either the string "<code title="">en</code>" or a language tag representing the language the browser uses in its interface.</p></dd>


<dt><dfn title="dom-navigator-userLanguage"><code>userLanguage</code></dfn></dt> <!- - Opera and IE only - ->
--><!-- at time of testing, this was supported by Opera, Safari, and Mozilla only --><dt><dfn id=dom-navigator-language title=dom-navigator-language><code>language</code></dfn></dt>
<dd><p>Must return either null or a language tag representing the user's preferred language.</dd>
<dd><p>Must return either the string "<code title="">en</code>" or a language tag representing the user's preferred language.</dd>

</dl><p class=warning>As for the API in the previous section, any information in this API that varies
from user to user can be used to profile or identify the user. For this reason, user agent
Expand Down
4 changes: 2 additions & 2 deletions index
Expand Up @@ -73140,12 +73140,12 @@ interface <dfn id=navigatorlanguage>NavigatorLanguage</dfn> {

<dl><!--
<dt><dfn title="dom-navigator-browserLanguage"><code>browserLanguage</code></dfn></dt> <!- - Opera and IE only - ->
<dd><p>Must return either null or a language tag representing the language the browser uses in its interface.</p></dd>
<dd><p>Must return either the string "<code title="">en</code>" or a language tag representing the language the browser uses in its interface.</p></dd>


<dt><dfn title="dom-navigator-userLanguage"><code>userLanguage</code></dfn></dt> <!- - Opera and IE only - ->
--><!-- at time of testing, this was supported by Opera, Safari, and Mozilla only --><dt><dfn id=dom-navigator-language title=dom-navigator-language><code>language</code></dfn></dt>
<dd><p>Must return either null or a language tag representing the user's preferred language.</dd>
<dd><p>Must return either the string "<code title="">en</code>" or a language tag representing the user's preferred language.</dd>

</dl><p class=warning>As for the API in the previous section, any information in this API that varies
from user to user can be used to profile or identify the user. For this reason, user agent
Expand Down
4 changes: 2 additions & 2 deletions source
Expand Up @@ -85062,14 +85062,14 @@ interface <dfn>NavigatorLanguage</dfn> {

<!--
<dt><dfn title="dom-navigator-browserLanguage"><code>browserLanguage</code></dfn></dt> <!- - Opera and IE only - ->
<dd><p>Must return either null or a language tag representing the language the browser uses in its interface.</p></dd>
<dd><p>Must return either the string "<code title="">en</code>" or a language tag representing the language the browser uses in its interface.</p></dd>


<dt><dfn title="dom-navigator-userLanguage"><code>userLanguage</code></dfn></dt> <!- - Opera and IE only - ->
-->
<!-- at time of testing, this was supported by Opera, Safari, and Mozilla only -->
<dt><dfn title="dom-navigator-language"><code>language</code></dfn></dt>
<dd><p>Must return either null or a language tag representing the user's preferred language.</p></dd>
<dd><p>Must return either the string "<code title="">en</code>" or a language tag representing the user's preferred language.</p></dd>

</dl>

Expand Down

0 comments on commit 99327d3

Please sign in to comment.