<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17878</bug_id>
          
          <creation_ts>2012-07-18 07:10:50 +0000</creation_ts>
          <short_desc>define navigator.language</short_desc>
          <delta_ts>2013-03-08 23:47:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/public-whatwg-archive/2008Dec/0361.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>robin</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70226</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 07:10:50 +0000</bug_when>
    <thetext>This was was cloned from bug 17479 as part of operation convergence.
Originally filed: 2012-06-13 10:39:00 +0000
Original reporter: Anne &lt;annevk@annevk.nl&gt;

================================================================================
 #0   Anne                                            2012-06-13 10:39:29 +0000 
--------------------------------------------------------------------------------
All browsers support it. We should document that somewhere and somewhere might as well be where the Navigator object is defined.

Maybe &quot;en&quot; should be used as value when the user wants to reduce fingerprinting. Though given all the other exposed fingerprinting data this might not be worth mentioning.
================================================================================
 #1   Simon Pieters                                   2012-06-13 10:59:34 +0000 
--------------------------------------------------------------------------------
$ grep -aPhc &quot;navigator\.language&quot; web200904 
3354

$ grep -aPhc &quot;navigator\.language&quot; stevef-all 
53
================================================================================
 #2   Simon Pieters                                   2012-06-13 11:15:20 +0000 
--------------------------------------------------------------------------------
I quickly looked through the stevef-all (which is from http://www.paciellogroup.com/blog/2012/04/html5-accessibility-chops-data-for-the-masses/ ) matches. Most or all of them also use navigator.userLanguage or navigator.browserLanguage or navigator.systemLanguage if navigator.language is not defined. The common usage of this API seems to be for tracking, although there are probably some that use it for localization purposes as well.
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74690</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-09-27 23:50:54 +0000</bug_when>
    <thetext>I didn&apos;t spec it before because interop sucks, according to my notes in the spec:

   &lt;!-- v2: also, could expose languages:
   &lt;dt&gt;&lt;dfn title=&quot;dom-navigator-browserLanguage&quot;&gt;&lt;code&gt;browserLanguage&lt;/code&gt;&lt;/dfn&gt;&lt;/dt&gt; &lt;!- - Opera and IE only - -&gt;
   &lt;dd&gt;&lt;p&gt;Must return either null or a language tag representing the language the browser uses in its interface.&lt;/p&gt;&lt;/dd&gt;
   &lt;dt&gt;&lt;dfn title=&quot;dom-navigator-userLanguage&quot;&gt;&lt;code&gt;userLanguage&lt;/code&gt;&lt;/dfn&gt;&lt;/dt&gt; &lt;!- - Opera and IE only - -&gt;
   &lt;dt&gt;&lt;dfn title=&quot;dom-navigator-language&quot;&gt;&lt;code&gt;language&lt;/code&gt;&lt;/dfn&gt;&lt;/dt&gt; &lt;!- - Opera, Safari, and Mozilla only - -&gt;
   &lt;dd&gt;&lt;p&gt;Must return either null or a language tag representing the user&apos;s preferred language.&lt;/p&gt;&lt;/dd&gt;
   --&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80684</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-29 23:22:32 +0000</bug_when>
    <thetext>Added language. Hopefully that&apos;s enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80936</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-01-05 12:13:24 +0000</bug_when>
    <thetext>I doubt returning a non-string value is compatible enough. I&apos;d suggest we make that the empty string or simply &quot;en&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84148</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-08 23:47:03 +0000</bug_when>
    <thetext>Ok.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84149</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-03-08 23:47:48 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7746.
Check-in comment: Default navigator.language to &apos;en&apos; instead of null.
http://html5.org/tools/web-apps-tracker?from=7745&amp;to=7746</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>