<?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>10196</bug_id>
          
          <creation_ts>2010-07-18 11:56:50 +0000</creation_ts>
          <short_desc>Relationship to xml:id</short_desc>
          <delta_ts>2010-10-04 14:31:19 +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>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xml-id/</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="Rouven We">me</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>hsivonen</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</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>36982</commentid>
    <comment_count>0</comment_count>
    <who name="Rouven We">me</who>
    <bug_when>2010-07-18 11:56:50 +0000</bug_when>
    <thetext>Currently the relationship to xml:id is not explicitly defined in the spec. Only implicitly it can be said that in the XHTML serialization it may be used because XHTML is an application of XML.

Since being explicit is better then being implicit I suggest adding a reference to xml:id 1.0 to the spec. More precisely xml:id should be listed in section 3.2.3 and either gets its own subsection or one shared with 3.2.3.1 the id attribute.

It should be made clear that only id or xml:id may be used on an element and not both. (I may be mistaken and it is allowed to specify both with the same content, if that&apos;s the case then this should be specified) Also a warning that xml:id is XML only.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36983</commentid>
    <comment_count>1</comment_count>
    <who name="Rouven We">me</who>
    <bug_when>2010-07-18 12:02:25 +0000</bug_when>
    <thetext>Forgot to mention that the sections 8.1.2.3 and 8.2.5.1 also may need updating when xml:id is added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36986</commentid>
    <comment_count>2</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2010-07-18 13:56:34 +0000</bug_when>
    <thetext>Why does it need to be mentioned? Also, why would xml:id and id be mutually exclusive? Is there any good reason to forbid &lt;div id=&quot;foo&quot; xml:id=&quot;bar&quot;/&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36987</commentid>
    <comment_count>3</comment_count>
    <who name="Rouven We">me</who>
    <bug_when>2010-07-18 14:42:27 +0000</bug_when>
    <thetext>I&apos;m unsure whether two attributes that are an id could be allowed by XML/xml:id. If this is allowed both should be allowed on an element if they have the same value.

Other XML infrastructure attributes (xml:space, xml:base) are also mentioned. In my opinion it is better to mention the possible use cases. Also it may be a good idea to have a warning that xml:id is allowed but discouraged because of the incompatibility with the HTML serialization.

Also please note there is no gain in using xml:id instead of id except when processing a document with an XML parser that knows xml:id but not HTML5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36993</commentid>
    <comment_count>4</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2010-07-19 08:13:55 +0000</bug_when>
    <thetext>If xml:id is explicitly mentioned, it should be explicitly banned. xml:id has explicitly been rejected from WebKit and isn&apos;t in Gecko due to performance issues. (Also, the Gecko patch was very big, which suggests that xml:id implies excessive code complexity. It sure has implied way more code complexity than I initially expected in Validator.nu.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37338</commentid>
    <comment_count>5</comment_count>
    <who name="Rouven We">me</who>
    <bug_when>2010-08-10 19:10:43 +0000</bug_when>
    <thetext>While I&apos;m surprised that xml:id introduces a lot of code complexity, explicitly disallowing it is most certainly one possible way to go. However, especially since HTML5 lack a doctype reference, it may be helpful when parsed with a XML processor.

To my knowledge Opera is currently the only browser that supports xml:id.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38869</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-09-10 23:19:31 +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: Rejected
Change Description: no spec change
Rationale: xml:id isn&apos;t mentioned because it&apos;s not part of any of the specs that HTML is based on (it&apos;s not part of the XML spec, XML namespaces, XML Stylesheet PI, or XML Base), and there are no implications on user agents or authors with respect to xml:id. It&apos;s just like there&apos;s no mention of SOAP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38876</commentid>
    <comment_count>7</comment_count>
    <who name="Rouven We">me</who>
    <bug_when>2010-09-11 10:29:11 +0000</bug_when>
    <thetext>I&apos;m satisfied with the response.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>