Skip to content

Commit

Permalink
If an event listener callback throws, report the exception (window.on…
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Nov 26, 2014
1 parent b2eb25f commit 55f7dbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,8 @@ <h3>Dispatching events</h3>
<code title=dom-EventListener-handleEvent>handleEvent</code>, with the event passed to
this algorithm as the first argument and <var title>event</var>'s
<code title=dom-Event-currentTarget>currentTarget</code> attribute value as
<span data-anolis-spec=webidl>callback this value</span>.
<span data-anolis-spec=webidl>callback this value</span>. If this throws any exception,
<span data-anolis-spec=html>report the exception</span>.
</ol>
</li>
</ol>
Expand Down
5 changes: 3 additions & 2 deletions dom-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<hgroup>
<h1 class="allcaps">DOM</h1>
<h2>Living Standard — Last Updated 25 November 2014</h2>
<h2>Living Standard — Last Updated 26 November 2014</h2>
</hgroup>

<dl>
Expand Down Expand Up @@ -1166,7 +1166,8 @@ <h3 id="dispatching-events"><span class="secno">3.7 </span>Dispatching events</h
<code title="dom-EventListener-handleEvent">handleEvent</code>, with the event passed to
this algorithm as the first argument and <var title="">event</var>'s
<code title="dom-Event-currentTarget"><a href="#dom-event-currenttarget">currentTarget</a></code> attribute value as
<a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-callback-this-value">callback this value</a>.
<a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-callback-this-value">callback this value</a>. If this throws any exception,
<a class="external" data-anolis-spec="html" href="https://html.spec.whatwg.org/multipage/webappapis.html#report-the-exception">report the exception</a>.
</ol>
</li>
</ol>
Expand Down

0 comments on commit 55f7dbf

Please sign in to comment.