Skip to content
Browse files

[giow] (2) report compile-time errors as well as runtime errors (and …

…a typo fix from an earlier checkin)

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

git-svn-id: http://svn.whatwg.org/webapps@5828 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent a012c05 commit 269c82aa492762c0135f81bfa7c07d7ff0acb7f5 @Hixie Hixie committed
Showing with 45 additions and 12 deletions.
  1. +14 −4 complete.html
  2. +14 −4 index
  3. +17 −4 source
View
18 complete.html
@@ -6168,7 +6168,7 @@ <h4 id=dynamic-changes-to-base-urls><span class=secno>2.6.2 </span>Dynamic chang
<h4 id=interfaces-for-url-manipulation><span class=secno>2.6.3 </span>Interfaces for URL manipulation</h4>
<p>An interface that has a complement of <dfn id=url-decomposition-idl-attributes>URL decomposition IDL
- attributes</dfn> his seven attributes with the following
+ attributes</dfn> has seven attributes with the following
definitions:</p>
<pre class="idl extract"> attribute DOMString <a href=#dom-uda-protocol title=dom-uda-protocol>protocol</a>;
@@ -64125,9 +64125,19 @@ <h5 id=creating-scripts><span class=secno>7.1.3.3 </span>Creating scripts</h5>
and the <a href="#script's-base-url">script's base URL</a> from the settings passed to
this algorithm.</li>
- <li><p><a href=#jump-to-a-code-entry-point title="jump to a code entry-point">Jump</a> to the
- <a href=#concept-script title=concept-script>script</a>'s <i><a href=#initial-code-entry-point>initial code
- entry-point</a></i>.</li>
+ <li>
+
+ <p>If all the steps above succeeded (in particular, if the script
+ was compiled successfully), <a href=#jump-to-a-code-entry-point title="jump to a code
+ entry-point">Jump</a> to the <a href=#concept-script title=concept-script>script</a>'s <i><a href=#initial-code-entry-point>initial code
+ entry-point</a></i>.</p>
+
+ <p>Otherwise, <a href=#report-the-error>report the error</a> using the <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code> <a href=#event-handlers title="event
+ handlers">event handler</a> of the <a href="#script's-global-object">script's global
+ object</a>. If the error is still <i title=concept-error-nothandled><a href=#concept-error-nothandled>not handled</a></i> after this, then
+ the error may be reported to the user.</p>
+
+ </li>
</ol><hr><p>When the user agent is to <dfn id=create-an-impotent-script>create an impotent script</dfn>,
given some script source, its scripting language, and a browsing
View
18 index
@@ -6147,7 +6147,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<h4 id=interfaces-for-url-manipulation><span class=secno>2.6.3 </span>Interfaces for URL manipulation</h4>
<p>An interface that has a complement of <dfn id=url-decomposition-idl-attributes>URL decomposition IDL
- attributes</dfn> his seven attributes with the following
+ attributes</dfn> has seven attributes with the following
definitions:</p>
<pre class="idl extract"> attribute DOMString <a href=#dom-uda-protocol title=dom-uda-protocol>protocol</a>;
@@ -64122,9 +64122,19 @@ NETWORK:
and the <a href="#script's-base-url">script's base URL</a> from the settings passed to
this algorithm.</li>
- <li><p><a href=#jump-to-a-code-entry-point title="jump to a code entry-point">Jump</a> to the
- <a href=#concept-script title=concept-script>script</a>'s <i><a href=#initial-code-entry-point>initial code
- entry-point</a></i>.</li>
+ <li>
+
+ <p>If all the steps above succeeded (in particular, if the script
+ was compiled successfully), <a href=#jump-to-a-code-entry-point title="jump to a code
+ entry-point">Jump</a> to the <a href=#concept-script title=concept-script>script</a>'s <i><a href=#initial-code-entry-point>initial code
+ entry-point</a></i>.</p>
+
+ <p>Otherwise, <a href=#report-the-error>report the error</a> using the <code title=handler-window-onerror><a href=#handler-window-onerror>onerror</a></code> <a href=#event-handlers title="event
+ handlers">event handler</a> of the <a href="#script's-global-object">script's global
+ object</a>. If the error is still <i title=concept-error-nothandled><a href=#concept-error-nothandled>not handled</a></i> after this, then
+ the error may be reported to the user.</p>
+
+ </li>
</ol><hr><p>When the user agent is to <dfn id=create-an-impotent-script>create an impotent script</dfn>,
given some script source, its scripting language, and a browsing
View
21 source
@@ -5718,7 +5718,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<h4>Interfaces for URL manipulation</h4>
<p>An interface that has a complement of <dfn>URL decomposition IDL
- attributes</dfn> his seven attributes with the following
+ attributes</dfn> has seven attributes with the following
definitions:</p>
<pre class="idl extract"> attribute DOMString <span title="dom-uda-protocol">protocol</span>;
@@ -72943,9 +72943,22 @@ NETWORK:
and the <span>script's base URL</span> from the settings passed to
this algorithm.</p></li>
- <li><p><span title="jump to a code entry-point">Jump</span> to the
- <span title="concept-script">script</span>'s <i>initial code
- entry-point</i>.</p></li>
+ <li>
+
+ <p>If all the steps above succeeded (in particular, if the script
+ was compiled successfully), <span title="jump to a code
+ entry-point">Jump</span> to the <span
+ title="concept-script">script</span>'s <i>initial code
+ entry-point</i>.</p>
+
+ <p>Otherwise, <span>report the error</span> using the <code
+ title="handler-window-onerror">onerror</code> <span title="event
+ handlers">event handler</span> of the <span>script's global
+ object</span>. If the error is still <i
+ title="concept-error-nothandled">not handled</i> after this, then
+ the error may be reported to the user.</p>
+
+ </li>
</ol>

0 comments on commit 269c82a

Please sign in to comment.
Something went wrong with that request. Please try again.