<?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>17085</bug_id>
          
          <creation_ts>2012-05-17 04:45:11 +0000</creation_ts>
          <short_desc>[Shadow]: Clarify the effect of &lt;meta http-equiv=&quot;…&quot;&gt; in Shadow DOM</short_desc>
          <delta_ts>2012-07-20 17:52:28 +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>PC</rep_platform>
          <op_sys>All</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>
          
          <blocked>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67801</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-17 04:45:11 +0000</bug_when>
    <thetext>Presumably, as a &lt;script&gt; tag in Shadow DOM executes and has side-effects on the global state, what is the effect of things like

var s = new ShadowRoot(document.head);
s.innerHTML = &apos;&lt;meta http-equiv=&quot;set-cookie&quot; content=&quot;foo=bar&quot;&gt;&apos;;

on document.cookie? Should these side effects happen? What about &lt;title&gt; and document.title? (Note that document.title has a setter.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67802</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-17 04:45:52 +0000</bug_when>
    <thetext>FWIW, in Chrome Canary the illustrated code above has the effect of setting the cookie, which is visible in document.cookie.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69109</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-06-15 22:12:17 +0000</bug_when>
    <thetext>Ok, trying to better understand how I should capture this. It seems I have a wording that&apos;s close enough:

http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#html-elements

&quot;All other HTML elements in the shadow DOM subtrees must behave as if they were part of the document tree, though scoped to their subtrees.&quot;

Do I need to add anything else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69174</commentid>
    <comment_count>3</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-06-18 01:38:05 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; &quot;All other HTML elements in the shadow DOM subtrees must behave as if they were
&gt; part of the document tree, though scoped to their subtrees.&quot;

Maybe it is Monday morning speaking, but as an implementer, I don’t know if that means the above example should set document.cookie (ie behave as if it were part of the document tree) or not (ie be scoped to its subtree)? Because subtrees don’t have cookies, I guess it is the former, so what does the &quot;scoped to their subtrees&quot; phrase control?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71263</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-20 17:52:04 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; &quot;All other HTML elements in the shadow DOM subtrees must behave as if they were
&gt; &gt; part of the document tree, though scoped to their subtrees.&quot;
&gt; 
&gt; Maybe it is Monday morning speaking, but as an implementer, I don’t know if
&gt; that means the above example should set document.cookie (ie behave as if it
&gt; were part of the document tree) or not (ie be scoped to its subtree)? Because
&gt; subtrees don’t have cookies, I guess it is the former, so what does the &quot;scoped
&gt; to their subtrees&quot; phrase control?

I made it more clear what the &quot;scoped&quot; means by explicitly referencing the &quot;scoping constraints&quot; (and linking to them).

http://dvcs.w3.org/hg/webcomponents/rev/cade79aaed01

What do you think?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71264</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-20 17:52:28 +0000</bug_when>
    <thetext>Please reopen if I screwed up.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>