<?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>21780</bug_id>
          
          <creation_ts>2013-04-23 05:07:18 +0000</creation_ts>
          <short_desc>A DOM attribute that returns the language of a node</short_desc>
          <delta_ts>2014-04-11 03:43:45 +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>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>16489</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Occil">poccil</reporter>
          <assigned_to>aardi79</assigned_to>
          <cc>aardi79</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86530</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Occil">poccil</who>
    <bug_when>2013-04-23 05:07:18 +0000</bug_when>
    <thetext>I believe there should be a DOM attribute that returns the language of a node, as defined in section 3.2.3.3 &quot;The lang and xml:lang attributes&quot;.

While there is a &quot;lang&quot; DOM attribute, it&apos;s inadequate because it&apos;s only affected by the element&apos;s &quot;lang&quot; content attribute.  Also, I don&apos;t see a way to get the &quot;language of a node&quot; otherwise, especially since it depends not only on &quot;lang&quot; and &quot;xml:lang&quot;, but also on the HTTP Content-Language header, which may not be possible to retrieve with existing JavaScript methods, as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86535</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Occil">poccil</who>
    <bug_when>2013-04-23 08:45:07 +0000</bug_when>
    <thetext>Issue posted to WHATWG mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88679</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-04 21:49:20 +0000</bug_when>
    <thetext>What&apos;s the use case?

(If this is being discussed on the list, please close the bug. There&apos;s no need to track it in both places. Thanks!)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88685</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Occil">poccil</who>
    <bug_when>2013-06-04 22:16:56 +0000</bug_when>
    <thetext>The use case is largely to ensure better conformance of browser-based JavaScript processors to the HTML+RDFa specification. I recently raised this issue in the RDFa Working Group mailing list, but no formal decision has been made yet. See &lt;http://lists.w3.org/Archives/Public/public-rdfa-wg/2013May/0064.html&gt;.  HTML+RDFa indirectly relies on &quot;language information from a higher-level protocol (such as HTTP)&quot;, and there is no current way to get that language information from browser-based JavaScript.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88829</commentid>
    <comment_count>4</comment_count>
    <who name="Peter Occil">poccil</who>
    <bug_when>2013-06-06 16:45:38 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 16489 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>