<?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>13393</bug_id>
          
          <creation_ts>2011-07-27 17:54:50 +0000</creation_ts>
          <short_desc>i18n-ISSUE-73: Case sensitivity of lang</short_desc>
          <delta_ts>2013-10-30 23:53:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="I18n Core WG">public-i18n-core</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>addison</cc>
    
    <cc>annevk</cc>
    
    <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51565</commentid>
    <comment_count>0</comment_count>
    <who name="I18n Core WG">public-i18n-core</who>
    <bug_when>2011-07-27 17:54:50 +0000</bug_when>
    <thetext>6.3.3 Attribute Values
http://www.w3.org/TR/html-polyglot/#attribute-values

&quot;Polyglot markup maintains case consistency for values on the following attributes, which occur on MIME types, language tags, charsets, booleans, media queries, and keywords. Though not required, an easy way to maintain case-consistency is to use only lower case values for these attributes. Polyglot markup maintains case consistency for these values because, for the purpose of selector matching, attribute values in XML are all treated case sensitively; however, HTML treats the values of these attributes as case insensitive (See 4.14.1 Case-sensitivity, in the HTML5 specification). [HTML5] &quot;

&quot;... lang ...&quot;

It seems to us that lang should not be in this list. XML processors don&apos;t recognise lang as containing language information - which is why you have to have xml:lang anyway (specified elsewhere in this spec). So any case sensitivity would only be relevant to xml:lang. Unless we&apos;re mistaken, the CSS3 Selectors spec says that language attributes, including xml:lang are matched in a case-insensitive way (http://www.w3.org/TR/css3-selectors/#lang-pseudo), so xml:lang shouldn&apos;t be in this list either (currently it&apos;s not). 

We would like you to remove lang from the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51567</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-07-27 18:05:32 +0000</bug_when>
    <thetext>If lang is removed the other attributes should be removed as well. Their values are always case-insensitive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53164</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:13 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53202</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:35 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95567</commentid>
    <comment_count>4</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2013-10-30 18:38:11 +0000</bug_when>
    <thetext>    EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If
    you are satisfied with this response, please change the state of
    this bug to CLOSED. If you have additional information and would
    like the Editor to reconsider, please reopen this bug. If you would
    like to escalate the issue to the full HTML Working Group, please
    add the TrackerRequest keyword to this bug, and suggest title and
    text for the Tracker Issue; or you may create a Tracker Issue
    yourself, if you are able to do so. For more details, see this
    document:

       http://dev.w3.org/html5/decision-policy/decision-policy.html

    Status: Accepted

I believe that this bug has previously been fixed, and so I am marking it so. 

The current editor&apos;s draft states: 

When specifying the language mapping of an element, polyglot markup uses both the lang and the xml:lang attributes. Neither attribute is to be used without the other, and polyglot markup maintains identical values for both lang and xml:lang.

The root element SHOULD always specify the language, or else HTML’s fallback language effect may step in and cause the language to vary depending on whether the document is consumed as XML (where the fallback language is not required to work) or consumed via file URI (where fallback language via external HTTP Content-Language would not work). Note that the internal http-equiv=&quot;Content-Language meta element is non-conforming in HTML5. For more, see e.g. HTML5’s language determination rules.

http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html#language-attributes


When specifying the language mapping of an element, polyglot markup uses both the lang and the xml:lang attributes. Neither attribute is to be used without the other, and polyglot markup maintains identical values for both lang and xml:lang.

The root element SHOULD always specify the language, or else HTML’s fallback language effect may step in and cause the language to vary depending on whether the document is consumed as XML (where the fallback language is not required to work) or consumed via file URI (where fallback language via external HTTP Content-Language would not work). Note that the internal http-equiv=&quot;Content-Language meta element is non-conforming in HTML5. For more, see e.g. HTML5’s language determination rules.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95569</commentid>
    <comment_count>5</comment_count>
    <who name="Addison Phillips">addison</who>
    <bug_when>2013-10-30 18:57:19 +0000</bug_when>
    <thetext>A look at the document on TR shows that the text about case sensitivity is still present in the section on attribute values. Your comment is about parallel use of @lang and @xml:lang. Did you close the wrong bug?

http://www.w3.org/TR/html-polyglot/#attribute-values</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95581</commentid>
    <comment_count>6</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2013-10-30 21:38:14 +0000</bug_when>
    <thetext>Apologies. Yes, I meant to resolve bug 13394. I am still working on this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95595</commentid>
    <comment_count>7</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2013-10-30 23:53:54 +0000</bug_when>
    <thetext>   EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If
    you are satisfied with this response, please change the state of
    this bug to CLOSED. If you have additional information and would
    like the Editor to reconsider, please reopen this bug. If you would
    like to escalate the issue to the full HTML Working Group, please
    add the TrackerRequest keyword to this bug, and suggest title and
    text for the Tracker Issue; or you may create a Tracker Issue
    yourself, if you are able to do so. For more details, see this
    document:

       http://dev.w3.org/html5/decision-policy/decision-policy.html

    Status: Accepted CVS revision 1.142

I&apos;ve removed these two language attributes from the list and added the following note for clarification:

Also note that because XML processors don&apos;t recognize lang as containing language information, polyglot markup uses both the lang and the xml:lang attributes (see Language attributes); however, the CSS3 Selectors specification stipulates that language attributes, including xml:lang, are matched in a case-insensitive way. [SELECT]</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>