Skip to content

Commit

Permalink
define a "have a listener for" concept on EventTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
gterzian committed Aug 10, 2018
1 parent 32efc48 commit b907cf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,12 @@ and a <dfn export for=EventTarget>legacy-canceled-activation behavior</dfn> algo
<p class="note no-backref">These algorithms only exist for checkbox and radio <{input}> elements and
are not to be used for anything else. [[!HTML]]

<p>An {{EventTarget}} object <var>target</var> is said to <dfn export>have a listener for</dfn>
<var>type</var> if <var>target</var>'s <a>event listener list</a> <a for=list>contains</a> an
<a>event listener</a> whose <a for="event listener">type</a> is <var>type</var>.

<p class="note no-backref">The presence, or absence, of event listeners can not be relied on to design new APIs, see [[#observing-event-listeners]].

<dl class=domintro>
<dt><code><var>target</var> = new <a constructor for=EventTarget lt=EventTarget()>EventTarget</a>();</code>
<dd><p>Creates a new {{EventTarget}} object, which can be used by developers to <a>dispatch</a> and
Expand Down

0 comments on commit b907cf6

Please sign in to comment.