Skip to content

Commit b2fa94e

Browse files
committed
EventListenerOptions: Rename 'normalize' to 'flatten'
1 parent a5a8933 commit b2fa94e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dom.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ seen from the definition above, an <a>event listener</a> is a more broad concept
10491049
{{Event/preventDefault()}} method was not invoked, and false otherwise.
10501050
</dl>
10511051

1052-
<p>To <dfn export for=Event id=concept-normalize-options>normalize</dfn> <var>options</var> run these steps:
1052+
<p>To <dfn export for=Event id=concept-flatten-options>flatten</dfn> <var>options</var> run these steps:
10531053

10541054
<ol>
10551055
<li>Let <var>capture</var> and <var>passive</var> be false.
@@ -1073,7 +1073,7 @@ method, when invoked, must run these steps:
10731073
<ol>
10741074
<li><p>If <var>callback</var> is null, terminate these steps.
10751075

1076-
<li>Let <var>capture</var> and <var>passive</var> be the result of <a>normalizing</a> <var>options</var>.
1076+
<li>Let <var>capture</var> and <var>passive</var> be the result of <a>flattening</a> <var>options</var>.
10771077

10781078
<li><p>Append an <a>event listener</a> to the associated list of <a>event listeners</a> with
10791079
<b>type</b> set to <var>type</var>, <b>callback</b> set to <var>callback</var>, <b>capture</b>
@@ -1087,7 +1087,7 @@ method, when invoked, must run these steps:
10871087
method, when invoked, must, run these steps
10881088

10891089
<ol>
1090-
<li>Let <var>capture</var> and <var>passive</var> be the result of <a>normalizing</a> <var>options</var>.
1090+
<li>Let <var>capture</var> and <var>passive</var> be the result of <a>flattening</a> <var>options</var>.
10911091

10921092
<li>If there is an <a>event listener</a> in the associated list of
10931093
<a>event listeners</a> whose <b>type</b> is <var>type</var>, <b>callback</b> is <var>callback</var>,

dom.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ <h3 class="heading settled" data-level="3.2" id="interface-event"><span class="s
537537
signals to the operation that caused <var>event</var> to be <a data-link-type="dfn" href="#concept-event-dispatch">dispatched</a> that it needs to be
538538
canceled.
539539
<dt><code><var>event</var> . <code class="idl"><a data-link-type="idl" href="#dom-event-defaultprevented">defaultPrevented</a></code></code>
540-
<dd>Returns true if <code class="idl"><a data-link-type="idl" href="#dom-event-preventdefault">preventDefault()</a></code> was invoked successfully to indicate cancellation.
540+
<dd>Returns true if <code class="idl"><a data-link-type="idl" href="#dom-event-preventdefault">preventDefault()</a></code> was invoked successfully to indicate cancellation, and false otherwise.
541541
<dt><code><var>event</var> . <code class="idl"><a data-link-type="idl" href="#dom-event-istrusted">isTrusted</a></code></code>
542542
<dd>Returns true if <var>event</var> was <a data-link-type="dfn" href="#concept-event-dispatch">dispatched</a> by the user agent, and
543543
false otherwise.
@@ -584,7 +584,7 @@ <h3 class="heading settled" data-level="3.2" id="interface-event"><span class="s
584584
<p>The <dfn class="idl-code" data-dfn-for="Event" data-dfn-type="method" data-export="" id="dom-event-preventdefault">preventDefault()<a class="self-link" href="#dom-event-preventdefault"></a></dfn> method must set the <a data-link-type="dfn" href="#canceled-flag">canceled flag</a> if the <code class="idl"><a data-link-type="idl" href="#dom-event-cancelable">cancelable</a></code> attribute value is true and
585585
the <a data-link-type="dfn" href="#in-passive-listener-flag">in passive listener flag</a> is unset.</p>
586586
<p class="note no-backref" role="note"> This means there are scenarios where invoking <code class="idl"><a data-link-type="idl" href="#dom-event-preventdefault">preventDefault()</a></code> has no effect.
587-
User agents are encouraged to log the precise cause in a developer console,
587+
User agents are encouraged to log the precise cause in a developer console,
588588
to aid debugging </p>
589589
<p>The <dfn class="idl-code" data-dfn-for="Event" data-dfn-type="attribute" data-export="" id="dom-event-defaultprevented">defaultPrevented<a class="self-link" href="#dom-event-defaultprevented"></a></dfn> attribute must return true if the <a data-link-type="dfn" href="#canceled-flag">canceled flag</a> is set and
590590
false otherwise.</p>
@@ -719,7 +719,7 @@ <h3 class="heading settled" data-level="3.6" id="interface-eventtarget"><span cl
719719
<dd><a data-link-type="dfn" href="#concept-event-dispatch">Dispatches</a> a synthetic event <var>event</var> to <var>target</var> and returns
720720
true if either <var>event</var>’s <code class="idl"><a data-link-type="idl" href="#dom-event-cancelable">cancelable</a></code> attribute value is false or its <code class="idl"><a data-link-type="idl" href="#dom-event-preventdefault">preventDefault()</a></code> method was not invoked, and false otherwise.
721721
</dl>
722-
<p>To <dfn data-dfn-for="Event" data-dfn-type="dfn" data-export="" id="concept-normalize-options">normalize<a class="self-link" href="#concept-normalize-options"></a></dfn> <var>options</var> run these steps: </p>
722+
<p>To <dfn data-dfn-for="Event" data-dfn-type="dfn" data-export="" id="concept-flatten-options">flatten<a class="self-link" href="#concept-flatten-options"></a></dfn> <var>options</var> run these steps: </p>
723723
<ol>
724724
<li>Let <var>capture</var> and <var>passive</var> be false.
725725
<li>If <var>options</var> is a boolean, set <var>capture</var> to <var>options</var>.
@@ -733,14 +733,14 @@ <h3 class="heading settled" data-level="3.6" id="interface-eventtarget"><span cl
733733
<ol>
734734
<li>
735735
<p>If <var>callback</var> is null, terminate these steps. </p>
736-
<li>Let <var>capture</var> and <var>passive</var> be the result of <a data-link-type="dfn" href="#concept-normalize-options">normalizing</a> <var>options</var>.
736+
<li>Let <var>capture</var> and <var>passive</var> be the result of <a data-link-type="dfn" href="#concept-flatten-options">flattening</a> <var>options</var>.
737737
<li>
738738
<p>Append an <a data-link-type="dfn" href="#concept-event-listener">event listener</a> to the associated list of <a data-link-type="dfn" href="#concept-event-listener">event listeners</a> with <b>type</b> set to <var>type</var>, <b>callback</b> set to <var>callback</var>, <b>capture</b> set to <var>capture</var>, and <b>passive</b> set to <var>passive</var> unless there
739739
already is an <a data-link-type="dfn" href="#concept-event-listener">event listener</a> in that list with the same <b>type</b>, <b>callback</b>, <b>capture</b>, and <b>passive</b>. </p>
740740
</ol>
741741
<p>The <dfn class="idl-code" data-dfn-for="EventTarget" data-dfn-type="method" data-export="" data-lt="removeEventListener(type, callback, options)|removeEventListener(type, callback)" id="dom-eventtarget-removeeventlistener"><code>removeEventListener(<var>type</var>, <var>callback</var>, <var>options</var>)</code><a class="self-link" href="#dom-eventtarget-removeeventlistener"></a></dfn> method, when invoked, must, run these steps </p>
742742
<ol>
743-
<li>Let <var>capture</var> and <var>passive</var> be the result of <a data-link-type="dfn" href="#concept-normalize-options">normalizing</a> <var>options</var>.
743+
<li>Let <var>capture</var> and <var>passive</var> be the result of <a data-link-type="dfn" href="#concept-flatten-options">flattening</a> <var>options</var>.
744744
<li>If there is an <a data-link-type="dfn" href="#concept-event-listener">event listener</a> in the associated list of <a data-link-type="dfn" href="#concept-event-listener">event listeners</a> whose <b>type</b> is <var>type</var>, <b>callback</b> is <var>callback</var>, <b>capture</b> is <var>capture</var>, and <b>passive</b> is <var>passive</var> then
745745
set that <a data-link-type="dfn" href="#concept-event-listener">event listener</a>’s <b>removed flag</b> and remove it from the
746746
associated list of <a data-link-type="dfn" href="#concept-event-listener">event listeners</a>.
@@ -4844,6 +4844,7 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
48444844
<li><a href="#dom-node-firstchild">firstChild</a><span>, in §4.4</span>
48454845
<li><a href="#concept-tree-first-child">first child</a><span>, in §2.1</span>
48464846
<li><a href="#dom-parentnode-firstelementchild">firstElementChild</a><span>, in §4.2.3</span>
4847+
<li><a href="#concept-flatten-options">flatten</a><span>, in §3.6</span>
48474848
<li><a href="#concept-tree-following">following</a><span>, in §2.1</span>
48484849
<li><a href="#concept-element-attributes-get-by-name">get an attribute by name</a><span>, in §4.8</span>
48494850
<li><a href="#concept-element-attributes-get-by-namespace">get an attribute by namespace and local name</a><span>, in §4.8</span>
@@ -5057,7 +5058,6 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
50575058
<li><a href="#dom-event-none">NONE</a><span>, in §3.2</span>
50585059
<li><a href="#nonelementparentnode">NonElementParentNode</a><span>, in §4.2.2</span>
50595060
<li><a href="#concept-document-no-quirks">no-quirks mode</a><span>, in §4.5</span>
5060-
<li><a href="#concept-normalize-options">normalize</a><span>, in §3.6</span>
50615061
<li><a href="#dom-node-normalize">normalize()</a><span>, in §4.4</span>
50625062
<li><a href="#dom-document-normalizedocument">normalizeDocument()</a><span>, in §8.2</span>
50635063
<li><a href="#notation">Notation</a><span>, in §8.2</span>

0 commit comments

Comments
 (0)