Skip to content

Commit

Permalink
Clarifications to the insertion point handling. More cross-refs acros…
Browse files Browse the repository at this point in the history
…s scripting sections.

git-svn-id: http://svn.whatwg.org/webapps@108 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 13, 2006
1 parent 2558520 commit 88fa147
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 25 deletions.
22 changes: 9 additions & 13 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -20107,9 +20107,11 @@ function receiver(e) {
and does so by switching back to in head, but the head isn't
the current node at that point (comments should go between the
head and the body) -->
This might cause some script to execute,<!-- XXX xref! --> and might
cause new characters to be inserted into the
tokeniser<!-- XXX xref -->.</p>
<span title="running a script"><a href="#when-a">Special processing
occurs when a <code>script</code> element is inserted into a
document</a></span> that might cause some script to execute, which
might cause <span title="dom-document-write">new characters to be
inserted into the tokeniser</span>.</p>

<p>Let the <span><a href="#insertion">insertion point</a></span> have
the value of the <var>old insertion point</var>. (In other words,
Expand Down Expand Up @@ -20150,23 +20152,17 @@ function receiver(e) {
<p><span><a href="#pause">Pause</a></span> until the script has
completed loading.

<li>
<p>Let the <var>old insertion point</var> have the same value as
the current <span><a href="#insertion">insertion
point</a></span>. Let the <span><a href="#insertion">insertion
point</a></span> be just before the <span><a
href="#next-input">next input character</a></span>.
<li>Let the <span><a href="#insertion">insertion point</a></span>
be just before the <span><a href="#next-input">next input
character</a></span>.

<li>
<p><span title="executing a script block"><a
href="#executing">Execute the script</a></span>.

<li>
<p>Let the <span><a href="#insertion">insertion point</a></span>
have the value of the <var>old insertion point</var>. (In other
words, restore the <span><a href="#insertion">insertion
point</a></span> to the value it had before the previous
paragraph. This value might be the "undefined" value.)
be undefined again.

<li>
<p>If there is once again <span title="the script that will
Expand Down
22 changes: 10 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -18211,9 +18211,12 @@ function receiver(e) {
<head></head><script><body> should put the script in the head,
and does so by switching back to in head, but the head isn't
the current node at that point (comments should go between the
head and the body) --> This might cause some script to
execute,<!-- XXX xref! --> and might cause new characters to
be inserted into the tokeniser<!-- XXX xref -->.</p>
head and the body) --> <span title="running a script">Special
processing occurs when a <code>script</code> element is
inserted into a document</span> that might cause some script
to execute, which might cause <span
title="dom-document-write">new characters to be inserted into
the tokeniser</span>.</p>

<p>Let the <span>insertion point</span> have the value of the
<var>old insertion point</var>. (In other words, restore the
Expand Down Expand Up @@ -18255,19 +18258,14 @@ function receiver(e) {
<li><p><span>Pause</span> until the script has completed
loading.</p></li>

<li><p>Let the <var>old insertion point</var> have the same
value as the current <span>insertion point</span>. Let the
<span>insertion point</span> be just before the <span>next
input character</span>.</p></li>
<li>Let the <span>insertion point</span> be just before the
<span>next input character</span>.</p></li>

<li><p><span title="executing a script block">Execute the
script</span>.</p></li>

<li><p>Let the <span>insertion point</span> have the value
of the <var>old insertion point</var>. (In other words,
restore the <span>insertion point</span> to the value it
had before the previous paragraph. This value might be the
"undefined" value.)</p></li>
<li><p>Let the <span>insertion point</span> be undefined
again.</p></li>

<li><p>If there is once again <span title="the script that
will execute as soon as the parser resumes">a script that
Expand Down

0 comments on commit 88fa147

Please sign in to comment.