<?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>16190</bug_id>
          
          <creation_ts>2012-03-01 23:12:01 +0000</creation_ts>
          <short_desc>Polyglot Markup: Clarify that xml:lang is optional</short_desc>
          <delta_ts>2013-04-08 21:40:35 +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>HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/html-xhtml-author-guide/#language-attributes</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-i18n-core</cc>
    
    <cc>xn--mlform-iua</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>64873</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-03-01 23:12:01 +0000</bug_when>
    <thetext>Per HTML5, the @lang attribute can be used in both XHTML and HTML:

&quot;The lang attribute in no namespace may be used on any HTML element.&quot; &lt;http://www.w3.org/TR/html5/elements#attr-lang&gt;


&quot;The term &quot;HTML elements&quot;, when used in this specification, refers to any element in that namespace, and thus refers to both HTML and XHTML elements.&quot; &lt;http://www.w3.org/TR/html5/infrastructure#html-elements&gt;

Therefore, Polyglot Markup should specify that xml:lang is optional.

Aslo see: 16166#c2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64875</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-03-01 23:14:23 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Aslo see: 16166#c2

See Bug 16166#c2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65991</commentid>
    <comment_count>2</comment_count>
    <who name="I18n Core WG">public-i18n-core</who>
    <bug_when>2012-03-23 17:32:39 +0000</bug_when>
    <thetext>I don&apos;t believe this is appropriate. See my rationale in comment 7 at https://www.w3.org/Bugs/Public/show_bug.cgi?id=16166</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66021</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-03-25 01:23:55 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I don&apos;t believe this is appropriate. See my rationale in comment 7 at
&gt; https://www.w3.org/Bugs/Public/show_bug.cgi?id=16166

I don&apos;t think your justification there is good enough.

(1) The point is that if one is to make an application/xhtml+xml document, then one isn&apos;t required to use xml:lang, if all one cares about is XML-capable HTML5-parsers.

     And so, the question begs to be asked: Why must I, suddenly, use xml:lang, it the document
     is supposed to be &apos;polyglot&apos;? 

     I agree that you, in bug 16166, 7th comment, have pointed out some reasons why an author might want the document to contain xml:lang.  But I see no *must* in there - it all depends on how &quot;naked&quot; you expect the XML parser to be.

(2) Meanwhile, in 16166, you suggest that text/html parsers should start to handle xml:lang. So, if that proposal were to be accepted, how would this impact on Polyglot Markup? My presumption is that you would like to be able to produce polyglot markup which contained xml:lang, without any requirement that @lang is present. 

(3) HTML+RDFa 1.1 is agnostic about xml:lang versus lang
     http://www.w3.org/TR/rdfa-in-html/#additional-rdfa-processing-rules

(4) RDFa Core likewise says:  &quot;In XHTML+RDFa [XHTML-RDFA], for example, the XML language attribute @xml:lang or the attribute @lang is used to add this information, whether the plain literal is designated by @content, or by the inline text of the element:&quot; 
   http://www.w3.org/TR/2011/WD-rdfa-core-20110331/

And so, I maintain that xml:lang should be optional. It would also be good to point out when/for what xml:lang is useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85735</commentid>
    <comment_count>4</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2013-04-08 20:38:15 +0000</bug_when>
    <thetext>This ended abruptly and without conclusive proposed text. The same seems true for bug 16166, in which much relevant discussion took place. Am I to take it that Leif&apos;s final thoughts in comment 3 contain the resolution, that xml:lang should be optional? 

I tend toward keeping the text as it is, that polyglot markup uses both xml:lang and @lang. If you have come to consensus otherwise, however, I am willing to incorporate that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85745</commentid>
    <comment_count>5</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2013-04-08 21:33:37 +0000</bug_when>
    <thetext>(In reply to comment #4)

Hi Eliot,

consider that I have changed my mind: xml:lang should be considered &lt;del&gt;polyglot&lt;/del&gt; &lt;ins&gt;robust&lt;/ins&gt;. Thus, no change, basically.

The thing is that xml:lang is *not* necessary in XHTML since a conforming XHTML parser will understand the @lang attribute.

However, from a *robust* viewpoint, it can be defended that xml:lang should be in.

Cheers!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>