<?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>16489</bug_id>
          
          <creation_ts>2012-03-23 08:00:57 +0000</creation_ts>
          <short_desc>Retrieve element language</short_desc>
          <delta_ts>2015-08-03 10:13:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>gphemsley</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</cc>
    
    <cc>msporny</cc>
    
    <cc>poccil</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65972</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-23 08:00:57 +0000</bug_when>
    <thetext>Marcos asked for a way to get the language of the current element. The DOM would define the concept and an attribute, HTML / XML would define its details. Robin suggested &quot;baseLang&quot; as attribute name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88823</commentid>
    <comment_count>1</comment_count>
    <who name="Manu Sporny">msporny</who>
    <bug_when>2013-06-06 14:54:05 +0000</bug_when>
    <thetext>This bug affects all JavaScript-based RDFa and Microdata processors. 

If the &quot;de&quot; BCP47 language code is set via the Content-Language HTTP header, and no language information is set in the HTML document, a JavaScript based implementation may think that the language is not set.

At present, it is impossible for a JavaScript implementation to deterministically retrieve an HTML5 element&apos;s language if no language information is provided in the document and the language was set via the Content-Language HTTP Header.

The HTML+RDFa 1.1 specification states that because of this, all HTML+RDFa 1.1 implementations implemented in JavaScript will be non-conforming in this specific case until the DOM exposes the language of an element. The guidance provided at this moment is that all HTML+RDFa and HTML+Microdata authors should specify the language of the document (if there is one) in the document itself to ensure that all Microdata/RDFa implementations are capable of retrieving the language of the element.

Once this bug is fixed, then one can perform a fully-conforming implementation of RDFa or Microdata in JavaScript.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88830</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Occil">poccil</who>
    <bug_when>2013-06-06 16:45:38 +0000</bug_when>
    <thetext>*** Bug 21780 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106646</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-22 13:49:18 +0000</bug_when>
    <thetext>Considerations here are:

* xml:lang vs lang
* Whether lang needs to be superglobal
* Content-Language (see :lang())</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122384</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-03 10:13:13 +0000</bug_when>
    <thetext>Sufficient interest has not materialized.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>