<?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>22412</bug_id>
          
          <creation_ts>2013-06-20 02:21:11 +0000</creation_ts>
          <short_desc>[Shadow]: Clarify the interaction with XML Namespace</short_desc>
          <delta_ts>2015-04-23 20:55:25 +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>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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>
          
          <blocked>22716</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Yuta Kitamura">yutak</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89621</commentid>
    <comment_count>0</comment_count>
    <who name="Yuta Kitamura">yutak</who>
    <bug_when>2013-06-20 02:21:11 +0000</bug_when>
    <thetext>Consider the following code:

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head id=&quot;head&quot;&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script&gt;&lt;![CDATA[
var shadowRoot = document.getElementById(&apos;head&apos;).createShadowRoot();
console.log(shadowRoot.namespaceURI);  // What should be printed?

shadowRoot.innerHTML = &quot;&lt;title /&gt;&quot;;
console.log(shadowRoot.firstChild.namespaceURI);  // How about this one?

document.documentElement.setAttribute(&apos;xmlns&apos;, &apos;http://example.com/foobar&apos;);
console.log(shadowRoot.firstChild.namespaceURI);  // Does it change?
]]&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

It is unclear from the specification whether XML namespace is derived
over host-shadow boundary. Probably this should be clarified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119849</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-04-23 20:55:25 +0000</bug_when>
    <thetext>This follows from how DocumentFragment and innerHTML work. First prints null I think, second null as well, and you cannot change namespaces.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>