Skip to content

Commit

Permalink
[e] (0) Try to clean up the rules about when <script> attributes affe…
Browse files Browse the repository at this point in the history
…ct script execution.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8473

git-svn-id: http://svn.whatwg.org/webapps@4555 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 10, 2010
1 parent 58fff30 commit c3fc2a4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 30 deletions.
18 changes: 8 additions & 10 deletions complete.html
Expand Up @@ -12322,10 +12322,8 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>

<p>Changing the <code title=attr-script-src><a href=#attr-script-src>src</a></code>, <code title=attr-script-type><a href=#attr-script-type>type</a></code>, <code title=attr-script-charset><a href=#attr-script-charset>charset</a></code>, <code title=attr-script-async><a href=#attr-script-async>async</a></code>, and <code title=attr-script-defer><a href=#attr-script-defer>defer</a></code> attributes dynamically has no
direct effect; these attribute are only used <span class=impl>at
specific times described below (namely,</span> when the element is
<a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into the
document</a><span class=impl>)</span>.</p> <!-- by implication,
changes to the base URL also have no effect -->
specific times described below.</span></p> <!-- by implication, changes to
the base URL also have no effect -->

<div class=impl>

Expand Down Expand Up @@ -12468,8 +12466,8 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>
<p>For historical reasons, if the <a href=#url>URL</a> is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code>
URL</a>, then the user agent must not, despite the requirements
in the definition of the <a href=#fetch title=fetch>fetching</a>
algorithm, actually execute the given script; instead the user
agent must act as if it had received an empty HTTP 400
algorithm, actually execute the script in the URL; instead the
user agent must act as if it had received an empty HTTP 400
response.</p>

<p>Once the resource's <a href=#content-type title=Content-Type>Content Type
Expand Down Expand Up @@ -12670,8 +12668,8 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>
<dd>

<p>The value of the <code title=dom-script-text><a href=#dom-script-text>text</a></code>
IDL attribute at the time the "<a href=#running-a-script>running a script</a>"
algorithm was first invoked is the script source.</p>
IDL attribute at the time the element's <a href=#already-started>"already
started"</a> flag was set is the script source.</p>

</dd>

Expand All @@ -12680,8 +12678,8 @@ <h4 id=script><span class=secno>4.3.1 </span>The <dfn><code>script</code></dfn>
<dd>

<p>The child nodes of the <code><a href=#script>script</a></code> element at the
time the "<a href=#running-a-script>running a script</a>" algorithm was first
invoked are the script source.</p>
time the element's <a href=#already-started>"already started"</a> flag was set
are the script source.</p>

</dd>

Expand Down
18 changes: 8 additions & 10 deletions index
Expand Up @@ -12187,10 +12187,8 @@ c-end = "--&gt;"</pre>

<p>Changing the <code title=attr-script-src><a href=#attr-script-src>src</a></code>, <code title=attr-script-type><a href=#attr-script-type>type</a></code>, <code title=attr-script-charset><a href=#attr-script-charset>charset</a></code>, <code title=attr-script-async><a href=#attr-script-async>async</a></code>, and <code title=attr-script-defer><a href=#attr-script-defer>defer</a></code> attributes dynamically has no
direct effect; these attribute are only used <span class=impl>at
specific times described below (namely,</span> when the element is
<a href=#insert-an-element-into-a-document title="insert an element into a document">inserted into the
document</a><span class=impl>)</span>.</p> <!-- by implication,
changes to the base URL also have no effect -->
specific times described below.</span></p> <!-- by implication, changes to
the base URL also have no effect -->

<div class=impl>

Expand Down Expand Up @@ -12333,8 +12331,8 @@ c-end = "--&gt;"</pre>
<p>For historical reasons, if the <a href=#url>URL</a> is a <a href=#javascript-protocol title="javascript protocol"><code title="">javascript:</code>
URL</a>, then the user agent must not, despite the requirements
in the definition of the <a href=#fetch title=fetch>fetching</a>
algorithm, actually execute the given script; instead the user
agent must act as if it had received an empty HTTP 400
algorithm, actually execute the script in the URL; instead the
user agent must act as if it had received an empty HTTP 400
response.</p>

<p>Once the resource's <a href=#content-type title=Content-Type>Content Type
Expand Down Expand Up @@ -12535,8 +12533,8 @@ c-end = "--&gt;"</pre>
<dd>

<p>The value of the <code title=dom-script-text><a href=#dom-script-text>text</a></code>
IDL attribute at the time the "<a href=#running-a-script>running a script</a>"
algorithm was first invoked is the script source.</p>
IDL attribute at the time the element's <a href=#already-started>"already
started"</a> flag was set is the script source.</p>

</dd>

Expand All @@ -12545,8 +12543,8 @@ c-end = "--&gt;"</pre>
<dd>

<p>The child nodes of the <code><a href=#script>script</a></code> element at the
time the "<a href=#running-a-script>running a script</a>" algorithm was first
invoked are the script source.</p>
time the element's <a href=#already-started>"already started"</a> flag was set
are the script source.</p>

</dd>

Expand Down
18 changes: 8 additions & 10 deletions source
Expand Up @@ -12890,10 +12890,8 @@ c-end = "-->"</pre>
title="attr-script-async">async</code>, and <code
title="attr-script-defer">defer</code> attributes dynamically has no
direct effect; these attribute are only used <span class="impl">at
specific times described below (namely,</span> when the element is
<span title="insert an element into a document">inserted into the
document</span><span class="impl">)</span>.</p> <!-- by implication,
changes to the base URL also have no effect -->
specific times described below.</p> <!-- by implication, changes to
the base URL also have no effect -->

<div class="impl">

Expand Down Expand Up @@ -13068,8 +13066,8 @@ c-end = "-->"</pre>
title="javascript protocol"><code title="">javascript:</code>
URL</span>, then the user agent must not, despite the requirements
in the definition of the <span title="fetch">fetching</span>
algorithm, actually execute the given script; instead the user
agent must act as if it had received an empty HTTP 400
algorithm, actually execute the script in the URL; instead the
user agent must act as if it had received an empty HTTP 400
response.</p>

<p>Once the resource's <span title="Content-Type">Content Type
Expand Down Expand Up @@ -13299,8 +13297,8 @@ c-end = "-->"</pre>
<dd>

<p>The value of the <code title="dom-script-text">text</code>
IDL attribute at the time the "<span>running a script</span>"
algorithm was first invoked is the script source.</p>
IDL attribute at the time the element's <span>"already
started"</span> flag was set is the script source.</p>

</dd>

Expand All @@ -13309,8 +13307,8 @@ c-end = "-->"</pre>
<dd>

<p>The child nodes of the <code>script</code> element at the
time the "<span>running a script</span>" algorithm was first
invoked are the script source.</p>
time the element's <span>"already started"</span> flag was set
are the script source.</p>

</dd>

Expand Down

0 comments on commit c3fc2a4

Please sign in to comment.