diff --git a/complete.html b/complete.html index 3e2d379af37..a6ba634377f 100644 --- a/complete.html +++ b/complete.html @@ -64825,14 +64825,54 @@
Set up a script execution environment for +
Set the corresponding event + handler to null.
Set up a script execution environment for JavaScript.
Let body be the event handler content + attribute's new value.
Using this script execution environment, create a function - object (as defined in ECMAScript edition 5 section 13.2 Creating - Function Objects), with:
+If body is not parsable as + FunctionBody then abort these steps.
+ +FunctionBody is defined in ECMAScript + edition 5 section 13 Function Definition. [ECMA262]
+ +If body begins with a Directive Prologue + that contains a Use Strict Directive then let strict be true, otherwise let strict be false.
+ +The terms "Directive Prologue" and "Use Strict + Directive" are defined in ECMAScript edition 5 section 14.1 + Directive Prologues and the Use Strict Directive. [ECMA262]
+ +If strict is true, and anything in body is a SyntaxError
according to the
+ Strict Mode Restrictions, then abort these steps.
The Strict Mode Restrictions are those listed in + ECMAScript edition 5 section 13.1 Strict Mode Restrictions. [ECMA262]
+ +Using the script execution environment created above, create a + function object (as defined in ECMAScript edition 5 section 13.2 + Creating Function Objects), with:
Let this new function be the only entry in the script's list of code entry-points.
If the previous steps failed to compile the script, then set - the corresponding event handler - to null and abort these steps.
Set up the script's global object, the script's browsing context, the script's document, the script's URL character encoding, diff --git a/index b/index index 288477d568e..0fecff87947 100644 --- a/index +++ b/index @@ -64828,14 +64828,54 @@ interface NavigatorOnLine { following steps to create a script after setting the content attribute to its new value:
-Set up a script execution environment for +
Set the corresponding event + handler to null.
Set up a script execution environment for JavaScript.
Let body be the event handler content + attribute's new value.
Using this script execution environment, create a function - object (as defined in ECMAScript edition 5 section 13.2 Creating - Function Objects), with:
+If body is not parsable as + FunctionBody then abort these steps.
+ +FunctionBody is defined in ECMAScript + edition 5 section 13 Function Definition. [ECMA262]
+ +If body begins with a Directive Prologue + that contains a Use Strict Directive then let strict be true, otherwise let strict be false.
+ +The terms "Directive Prologue" and "Use Strict + Directive" are defined in ECMAScript edition 5 section 14.1 + Directive Prologues and the Use Strict Directive. [ECMA262]
+ +If strict is true, and anything in body is a SyntaxError
according to the
+ Strict Mode Restrictions, then abort these steps.
The Strict Mode Restrictions are those listed in + ECMAScript edition 5 section 13.1 Strict Mode Restrictions. [ECMA262]
+ +Using the script execution environment created above, create a + function object (as defined in ECMAScript edition 5 section 13.2 + Creating Function Objects), with:
Let this new function be the only entry in the script's list of code entry-points.
If the previous steps failed to compile the script, then set - the corresponding event handler - to null and abort these steps.
Set up the script's global object, the script's browsing context, the script's document, the script's URL character encoding, diff --git a/source b/source index f4fbffe7780..788af92a046 100644 --- a/source +++ b/source @@ -73751,14 +73751,60 @@ interface NavigatorOnLine {
Set the corresponding event + handler to null.
Set up a script execution environment for JavaScript.
Let body be the event handler content + attribute's new value.
Using this script execution environment, create a function - object (as defined in ECMAScript edition 5 section 13.2 Creating - Function Objects), with:
+If body is not parsable as + FunctionBody then abort these steps.
+ +FunctionBody is defined in ECMAScript + edition 5 section 13 Function Definition. [ECMA262]
+ +If body begins with a Directive Prologue + that contains a Use Strict Directive then let strict be true, otherwise let strict be false.
+ +The terms "Directive Prologue" and "Use Strict + Directive" are defined in ECMAScript edition 5 section 14.1 + Directive Prologues and the Use Strict Directive. [ECMA262]
+ +If strict is true, and anything in body is a SyntaxError
according to the
+ Strict Mode Restrictions, then abort these steps.
The Strict Mode Restrictions are those listed in + ECMAScript edition 5 section 13.1 Strict Mode Restrictions. [ECMA262]
+ +Using the script execution environment created above, create a + function object (as defined in ECMAScript edition 5 section 13.2 + Creating Function Objects), with:
If the previous steps failed to compile the script, then set - the corresponding event handler - to null and abort these steps.
Set up the script's global object, the script's browsing context, the script's document, the script's URL character encoding,