<?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>17112</bug_id>
          
          <creation_ts>2012-05-18 20:05:58 +0000</creation_ts>
          <short_desc>[Custom]: Specify behavior of &lt;script&gt; element when child of &lt;element&gt;</short_desc>
          <delta_ts>2012-08-24 23:38:59 +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>17103</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67909</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-05-18 20:05:58 +0000</bug_when>
    <thetext>The fact that &lt;script&gt; element behaves differently when it is a child of &lt;element&gt; is bothersome. What are the alternatives?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67996</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-22 06:44:39 +0000</bug_when>
    <thetext>Templates have already made a decision on this:

&lt;https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#definitions&gt;

Namely that &lt;script&gt; is inert; so be it. If there is an applicable alternative it should be examined for use in the template case as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68011</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-05-22 16:10:26 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Templates have already made a decision on this:
&gt; 
&gt; &lt;https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#definitions&gt;
&gt; 
&gt; Namely that &lt;script&gt; is inert; so be it. If there is an applicable alternative
&gt; it should be examined for use in the template case as well.

This is for when &lt;script&gt; is a child of &lt;element&gt;, not &lt;template&gt;. It is not inert, but is instead executed in a specially constructed scope.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68028</commentid>
    <comment_count>3</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-23 04:58:21 +0000</bug_when>
    <thetext>Got it.

If you want to run the script in a different context, I don’t see how you get around having different semantics. For example you could do &lt;element onmumble=&quot;f()&quot;&gt; and fire onmumble after the child script has run. But then that script is running in the typical window context to define f.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72746</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-24 23:38:59 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/15fded36e9c9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>