<?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>25062</bug_id>
          
          <creation_ts>2014-03-15 00:12:46 +0000</creation_ts>
          <short_desc>Add specialized serialization requirements for element namespaces in XML/XMLNS</short_desc>
          <delta_ts>2014-03-28 21:17:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM Parsing and Serialization</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Travis Leithead [MSFT]">travil</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102405</commentid>
    <comment_count>0</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-03-15 00:12:46 +0000</bug_when>
    <thetext>Some notes, while I was working on bug 24208:

Firefox-as-reference:
&quot;&lt;xml:div/&gt;&quot; == new XMLSerializer().serializeToString(document.createElementNS(&quot;http://www.w3.org/XML/1998/namespace&quot;, &quot;foot:div&quot;));

* &quot;xml&quot; prefix trumps actual prefix for nodes in the XML namespace in the XML Serializer.
(Same goes for nested elements with XML namespace:
...appendChild(document.createElementNS(&quot;http://www.w3.org/XML/1998/namespace&quot;, &quot;toe:span&quot;));
&quot;&lt;xml:div&gt;&lt;xml:span/&gt;&lt;/xml:div&gt;&quot; -- XMLSerializer
&quot;&lt;foot:div&gt;&lt;toe:span&gt;&lt;/toe:span&gt;&lt;/foot:div&gt;&quot; -- HTML Serializer uses QName

Per DOM4:
* XMLNS is tightly controlled (reserved) via createElementNS -- prefix/QName &lt;-must match-&gt; namespace
* XML prefix -&gt; XML namespace is controlled (reserved), but not vice-versa. 

Possible cases to handle:
&quot;&lt;xmlns:div/&gt;&quot; == new XMLSerializer().serializeToString(document.createElementNS(&quot;http://www.w3.org/2000/xmlns/&quot;, &quot;xmlns:div&quot;));
&quot;&lt;xmlns xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;/&gt;&quot; == new XMLSerializer().serializeToString(document.createElementNS(&quot;http://www.w3.org/2000/xmlns/&quot;, &quot;xmlns&quot;));
* ASSERT: Follows generic serializer rules with regard to expansion/prefix use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102792</commentid>
    <comment_count>1</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-03-23 00:05:01 +0000</bug_when>
    <thetext>Took care of this in most recent changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103125</commentid>
    <comment_count>2</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-03-28 21:17:36 +0000</bug_when>
    <thetext>Note, this was changeset:
https://dvcs.w3.org/hg/innerhtml/rev/393c42a44e7f</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>