HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/6964

SVNBugCommentTime (UTC)
6964[Gecko] [Internet Explorer] [Opera] [Webkit] Add beforescriptexecute and afterscriptexecute events to <script>.2012-02-04 06:39
Index: source
===================================================================
--- source	(revision 6963)
+++ source	(revision 6964)
@@ -17913,6 +17913,17 @@
 
        <li>
 
+        <p><span>Fire a simple event</span> named <code
+        title="event-beforescriptexecute">beforescriptexecute</code>
+        that bubbles and is cancelable at the <code>script</code>
+        element.</p>
+
+        <p>If the event is canceled, then abort these steps.</p>
+
+       </li>
+
+       <li>
+
         <p>If the script is from an external file, then increment the
         <span>ignore-destructive-writes counter</span> of the
         <code>script</code> element's <code>Document</code>. Let <var
@@ -17944,6 +17955,15 @@
 
        <li>
 
+        <p><span>Fire a simple event</span> named <code
+        title="event-afterscriptexecute">afterscriptexecute</code>
+        that bubbles (but is not cancelable) at the
+        <code>script</code> element.</p>
+
+       </li>
+
+       <li>
+
         <p>If the script is from an external file, <span>fire a simple
         event</span> named <code title="event-load">load</code> at the
         <code>script</code> element.</p>

|