@@ -2972,6 +2972,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
2972
2972
<li><dfn data-x="dom-Event-currentTarget" data-x-href="https://dom.spec.whatwg.org/#dom-event-currenttarget"><code>currentTarget</code></dfn> attribute</li>
2973
2973
<li><dfn data-x="dom-Event-bubbles" data-x-href="https://dom.spec.whatwg.org/#dom-event-bubbles"><code>bubbles</code></dfn> attribute</li>
2974
2974
<li><dfn data-x="dom-Event-cancelable" data-x-href="https://dom.spec.whatwg.org/#dom-event-cancelable"><code>cancelable</code></dfn> attribute</li>
2975
+ <li><dfn data-x="dom-Event-composed" data-x-href="https://dom.spec.whatwg.org/#dom-event-composed"><code>composed</code></dfn> attribute</li>
2975
2976
<li><dfn data-x-href="https://dom.spec.whatwg.org/#composed-flag">composed flag</dfn></li>
2976
2977
<li><dfn data-x="dom-Event-isTrusted" data-x-href="https://dom.spec.whatwg.org/#dom-event-istrusted"><code>isTrusted</code></dfn> attribute</li>
2977
2978
<li><dfn data-x="dom-Event-initEvent" data-x-href="https://dom.spec.whatwg.org/#dom-event-initevent"><code>initEvent()</code></dfn> method</li>
@@ -45048,7 +45049,8 @@ interface <dfn>HTMLInputElement</dfn> : <span>HTMLElement</span> {
45048
45049
<li><p><span>Queue an element task</span> on the <span>user interaction task source</span> given
45049
45050
the element to <span data-x="concept-event-fire">fire an event</span> named <code
45050
45051
data-x="event-input">input</code> at the element, with the <code
45051
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p></li>
45052
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
45053
+ attributes initialized to true.</p></li>
45052
45054
</ol>
45053
45055
45054
45056
</div>
@@ -47033,7 +47035,8 @@ ldh-str = < as defined in <a href="https://tools.ietf.org/html/rfc1034#
47033
47035
47034
47036
<li><p><span data-x="concept-event-fire">Fire an event</span> named <code
47035
47037
data-x="event-input">input</code> at the element with the <code
47036
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p></li>
47038
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
47039
+ attributes initialized to true.</p></li>
47037
47040
47038
47041
<li><p><span data-x="concept-event-fire">Fire an event</span> named <code
47039
47042
data-x="event-change">change</code> at the element with the <code
@@ -47189,7 +47192,8 @@ ldh-str = < as defined in <a href="https://tools.ietf.org/html/rfc1034#
47189
47192
47190
47193
<li><p><span data-x="concept-event-fire">Fire an event</span> named <code
47191
47194
data-x="event-input">input</code> at the element with the <code
47192
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p></li>
47195
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
47196
+ attributes initialized to true.</p></li>
47193
47197
47194
47198
<li><p><span data-x="concept-event-fire">Fire an event</span> named <code
47195
47199
data-x="event-change">change</code> at the element with the <code
@@ -47343,41 +47347,42 @@ ldh-str = < as defined in <a href="https://tools.ietf.org/html/rfc1034#
47343
47347
47344
47348
<li><p>Wait for the user to have made their selection.</p></li>
47345
47349
47346
- <li>
47347
- <p><span>Queue an element task</span> on the <span>user interaction task source</span> given
47348
- the <code>input</code> element and the following steps:</p>
47349
-
47350
- <ol>
47351
- <li><p>Update the element's <span data-x="concept-input-type-file-selected">selected
47352
- files</span> so that it represents the user's selection.</p></li>
47353
-
47354
- <li><p><span data-x="concept-event-fire">Fire an event</span> named <code
47355
- data-x="event-input">input</code> at the <code>input</code> element, with the <code
47356
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true, and finally <span
47357
- data-x="concept-event-fire">fire an event</span> named <code
47358
- data-x="event-change">change</code> at the <code>input</code> element, with the <code
47359
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p></li>
47360
- </ol>
47361
- </li>
47350
+ <li><p><span>Update the file selection</span> for the <code>input</code> element.</p></li>
47362
47351
</ol>
47363
47352
</li>
47364
47353
</ol>
47365
47354
47366
47355
<p>If the element is <i data-x="concept-fe-mutable">mutable</i>, the user agent should allow the
47367
- user to change the files on the list in other ways also, e.g. adding or removing files by
47368
- drag-and-drop. When the user does so, the user agent must <span>queue an element task</span> on
47369
- the <span>user interaction task source</span> given the <code>input</code> element to first update
47370
- the element's <span data-x="concept-input-type-file-selected">selected files</span> so that it
47371
- represents the user's new selection, then <span data-x="concept-event-fire">fire an event</span>
47372
- named <code data-x="event-input">input</code> at the <code>input</code> element, with the <code
47373
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true, and finally <span
47374
- data-x="concept-event-fire">fire an event</span> named <code data-x="event-change">change</code>
47375
- at the <code>input</code> element, with the <code data-x="dom-Event-bubbles">bubbles</code>
47376
- attribute initialized to true.</p>
47356
+ user to change the files on the list in other ways also, e.g., adding or removing files by
47357
+ drag-and-drop. When the user does so, the user agent must <span>update the file selection</span>
47358
+ for the element.</p>
47377
47359
47378
47360
<p>If the element is not <i data-x="concept-fe-mutable">mutable</i>, the user agent must not allow
47379
47361
the user to change the element's selection.</p>
47380
47362
47363
+ <p>To <dfn>update the file selection</dfn> for an element <var>element</var>:</p>
47364
+
47365
+ <ol>
47366
+ <li>
47367
+ <p><span>Queue an element task</span> on the <span>user interaction task source</span> given
47368
+ <var>element</var> and the following steps:</p>
47369
+
47370
+ <ol>
47371
+ <li><p>Update <var>element</var>'s <span data-x="concept-input-type-file-selected">selected
47372
+ files</span> so that it represents the user's selection.</p></li>
47373
+
47374
+ <li><p><span data-x="concept-event-fire">Fire an event</span> named <code
47375
+ data-x="event-input">input</code> at the <code>input</code> element, with the <code
47376
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
47377
+ attributes initialized to true.</p></li>
47378
+
47379
+ <li><p><span data-x="concept-event-fire">Fire an event</span> named <code
47380
+ data-x="event-change">change</code> at the <code>input</code> element, with the <code
47381
+ data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p></li>
47382
+ </ol>
47383
+ </li>
47384
+ </ol>
47385
+
47381
47386
<p><strong>Constraint validation</strong>: If the element is <i
47382
47387
data-x="concept-input-required">required</i> and the list of <span
47383
47388
data-x="concept-input-type-file-selected">selected files</span> is empty, then the element is
@@ -49359,12 +49364,12 @@ You cannot submit this form when the field is incorrect.</samp></pre>
49359
49364
<span>queue an element task</span> on the <span>user interaction task source</span> given the
49360
49365
<code>input</code> element to <span data-x="concept-event-fire">fire an event</span> named <code
49361
49366
data-x="event-input">input</code> at the <code>input</code> element, with the <code
49362
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true, and any time the user
49363
- commits the change, the user agent must <span>queue an element task</span> on the <span> user
49364
- interaction task source </span> given the <code>input</code> element to < span
49365
- data-x="concept-event-fire">fire an event</span> named <code data-x="event-change">change</code>
49366
- at the <code>input</code> element, with the <code data-x="dom-Event-bubbles">bubbles</code>
49367
- attribute initialized to true.</p>
49367
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
49368
+ attributes initialized to true, and any time the user commits the change, the user agent must
49369
+ <span>queue an element task </span> on the <span>user interaction task source</ span> given the
49370
+ <code>input</code> element to <span data-x="concept-event-fire">fire an event</span> named <code
49371
+ data-x="event-change">change</code> at the <code>input</code> element, with the <code
49372
+ data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p>
49368
49373
49369
49374
<p class="example">An example of a user interface involving both interactive manipulation and a
49370
49375
commit action would be a <span data-x="attr-input-type-range">Range</span> controls that use a
@@ -49380,7 +49385,8 @@ You cannot submit this form when the field is incorrect.</samp></pre>
49380
49385
agent must <span>queue an element task</span> on the <span>user interaction task source</span>
49381
49386
given the <code>input</code> element to first <span data-x="concept-event-fire">fire an
49382
49387
event</span> named <code data-x="event-input">input</code> at the <code>input</code> element, with
49383
- the <code data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true, and then <span
49388
+ the <code data-x="dom-Event-bubbles">bubbles</code> and <code
49389
+ data-x="dom-Event-composed">composed</code> attributes initialized to true, and then <span
49384
49390
data-x="concept-event-fire">fire an event</span> named <code data-x="event-change">change</code>
49385
49391
at the <code>input</code> element, with the <code data-x="dom-Event-bubbles">bubbles</code>
49386
49392
attribute initialized to true.</p>
@@ -49403,9 +49409,10 @@ You cannot submit this form when the field is incorrect.</samp></pre>
49403
49409
action, the user agent must <span>queue an element task</span> on the <span>user interaction task
49404
49410
source</span> given the <code>input</code> element to <span data-x="concept-event-fire">fire an
49405
49411
event</span> named <code data-x="event-input">input</code> at the <code>input</code> element, with
49406
- the <code data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true. The
49407
- corresponding <code data-x="event-change">change</code> event, if any, will be fired when the
49408
- control <a href="#unfocus-causes-change-event">loses focus</a>.</p>
49412
+ the <code data-x="dom-Event-bubbles">bubbles</code> and <code
49413
+ data-x="dom-Event-composed">composed</code> attributes initialized to true. The corresponding
49414
+ <code data-x="event-change">change</code> event, if any, will be fired when the control <a
49415
+ href="#unfocus-causes-change-event">loses focus</a>.</p>
49409
49416
49410
49417
<p class="example">Examples of a user changing the element's <span
49411
49418
data-x="concept-fe-value">value</span> would include the user typing into a text control, pasting
@@ -49432,7 +49439,8 @@ You cannot submit this form when the field is incorrect.</samp></pre>
49432
49439
task source</span> given the <code>input</code> element to first update the <span
49433
49440
data-x="concept-fe-value">value</span> accordingly, then <span data-x="concept-event-fire">fire an
49434
49441
event</span> named <code data-x="event-input">input</code> at the <code>input</code> element, with
49435
- the <code data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true, then <span
49442
+ the <code data-x="dom-Event-bubbles">bubbles</code> and <code
49443
+ data-x="dom-Event-composed">composed</code> attributes initialized to true, then <span
49436
49444
data-x="concept-event-fire">fire an event</span> named <code data-x="event-change">change</code>
49437
49445
at the <code>input</code> element, with the <code data-x="dom-Event-bubbles">bubbles</code>
49438
49446
attribute initialized to true.</p>
@@ -49882,7 +49890,8 @@ interface <dfn>HTMLSelectElement</dfn> : <span>HTMLElement</span> {
49882
49890
<ol>
49883
49891
<li><p><span data-x="concept-event-fire">Fire an event</span> named <code
49884
49892
data-x="event-input">input</code> at the <code>select</code> element, with the <code
49885
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p></li>
49893
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
49894
+ attributes initialized to true.</p></li>
49886
49895
49887
49896
<li><p><span data-x="concept-event-fire">Fire an event</span> named <code
49888
49897
data-x="event-change">change</code> at the <code>select</code> element, with the <code
@@ -50780,10 +50789,11 @@ interface <dfn>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
50780
50789
element task</span> on the <span>user interaction task source</span> given the
50781
50790
<code>textarea</code> element to <span data-x="concept-event-fire">fire an event</span> named
50782
50791
<code data-x="event-input">input</code> at the <code>textarea</code> element, with the <code
50783
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true. User agents may wait for
50784
- a suitable break in the user's interaction before queuing the task; for example, a user agent
50785
- could wait for the user to have not hit a key for 100ms, so as to only fire the event when the
50786
- user pauses, instead of continuously for each keystroke.</p>
50792
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
50793
+ attributes initialized to true. User agents may wait for a suitable break in the user's
50794
+ interaction before queuing the task; for example, a user agent could wait for the user to have not
50795
+ hit a key for 100ms, so as to only fire the event when the user pauses, instead of continuously
50796
+ for each keystroke.</p>
50787
50797
<!-- same text is present in the <input> section -->
50788
50798
50789
50799
<p>A <code>textarea</code> element's <span data-x="concept-fe-dirty">dirty value flag</span> must
@@ -50824,7 +50834,8 @@ interface <dfn>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
50824
50834
<li><p><span>Queue an element task</span> on the <span>user interaction task source</span> given
50825
50835
the <code>textarea</code> element to <span data-x="concept-event-fire">fire an event</span> named
50826
50836
<code data-x="event-input">input</code> at the <code>textarea</code> element, with the <code
50827
- data-x="dom-Event-bubbles">bubbles</code> attribute initialized to true.</p></li>
50837
+ data-x="dom-Event-bubbles">bubbles</code> and <code data-x="dom-Event-composed">composed</code>
50838
+ attributes initialized to true.</p></li>
50828
50839
</ol>
50829
50840
50830
50841
</div>
0 commit comments