<?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>16520</bug_id>
          
          <creation_ts>2012-03-26 08:13:46 +0000</creation_ts>
          <short_desc>Don&apos;t indicate that XML MIME types *requires* xml:lang</short_desc>
          <delta_ts>2012-08-19 21:21:14 +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+RDFa (editor: Manu Sporny)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/rdfa/#specifying-the-language-for-a-literal</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="Manu Sporny">msporny</assigned_to>
          <cc>mike</cc>
    
    <cc>msporny</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>66039</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2012-03-26 08:13:46 +0000</bug_when>
    <thetext>The HTML+RDFa spec says:

]] If an author is editing an HTML fragment and is unsure of the final encapsulating MIME type for their markup, it is suggested that the author specify both lang and xml:lang [[

    NIT: &quot;If an author is [snip] for their markup&quot;.
Correct: &quot;If an author is [snip] for his/her markup&quot;.

ISSUE: The advice proliferate the belief that XML mime types *need* xml:lang. But it is only if they don&apos;t understand XHTML that they *need* xml:lang. They might very well not understand XHTML. But is that related to the MIME type?

The only use case I have heard for xml:lang is XML authoring tools - thus, not exactly &quot;the final encapsulating MIME type&quot;. XML parsers of the Web browser kind (IE/Webkit/Opera/Gecko) do understand the @lang attribute. (Though there might be legacy versions which don&apos;t.) And e.g. the XHTML+RDFa DOCTYPE supports both @lang and @xml:lang.

Are there any *real* reasons for using both attributes - unrelated to authors&apos; fears and feelings? Such as legacy RDFa parsers? Or specific XML authoring tools? Or specific consumers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72417</commentid>
    <comment_count>1</comment_count>
    <who name="Manu Sporny">msporny</who>
    <bug_when>2012-08-19 21:16:42 +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: Fixed/Answered

Change Description: 

Fixed the nit you had (s/their/his\her/)

Rationale:

The nit submitted was correct.

&gt; They might very well not understand XHTML. 
&gt; But is that related to the MIME type?

No, it doesn&apos;t have to always be related to MIME type. RDFa processors often put themselves into XML or non-XML mode when processing, one of the ways that they can do this is based on MIME type. In non-XML mode, they shouldn&apos;t pay attention to xml:lang. So, if an author marks up their snippet using &quot;xml:lang&quot; and that snippet shows up in an HTML5 document processed in non-XML mode, then the &quot;xml:lang&quot; value would be ignored. This is why we tell authors to specify both.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>