@@ -329,13 +329,13 @@ events.
329
329
=| # | Event Type | Notes |
330
330
+---+------------+----------------------------------------------------+
331
331
+| | | <em>User shifts focus</em> |
332
- +| 1 | focusin | Sent before first target element receives focus |
333
- +| 2 | focus | Sent after first target element receives focus |
332
+ +| 1 | focus | Sent after first target element receives focus |
333
+ +| 2 | focusin | Follows the focus event |
334
334
+| | | <em>User shifts focus</em> |
335
- +| 3 | focusout | Sent before first target element loses focus |
336
- +| 4 | focusin | Sent before second target element receives focus |
337
- +| 5 | blur | Sent after first target element loses focus |
338
- +| 6 | focus | Sent after second target element receives focus |
335
+ +| 3 | blur | Sent after first target element loses focus |
336
+ +| 4 | focusout | Follows the blur event |
337
+ +| 5 | focus | Sent after second target element receives focus |
338
+ +| 6 | focusin | Follows the focus event |
339
339
++---+------------+----------------------------------------------------+
340
340
341
341
<p class="note">
@@ -419,9 +419,8 @@ events.
419
419
420
420
A <a>user agent</a> MUST dispatch this event when an <a>event
421
421
target</a> loses focus. The focus MUST be taken from the element
422
- before the dispatch of this event type. This event type is similar
423
- to EVENT{focusout}, but is dispatched after focus is shifted, and
424
- does not bubble.
422
+ before the dispatch of this event type. This event type is similar
423
+ to [=focusout=], but does not bubble.
425
424
426
425
<h5 id="event-type-focus"><dfn>focus</dfn></h5>
427
426
@@ -447,9 +446,8 @@ events.
447
446
448
447
A <a>user agent</a> MUST dispatch this event when an <a>event
449
448
target</a> receives focus. The focus MUST be given to the element
450
- before the dispatch of this event type. This event type is similar
451
- to EVENT{focusin}, but is dispatched after focus is shifted, and
452
- does not bubble.
449
+ before the dispatch of this event type. This event type is similar
450
+ to [=focusin=], but does not bubble.
453
451
454
452
<h5 id="event-type-focusin"><dfn>focusin</dfn></h5>
455
453
@@ -473,22 +471,11 @@ events.
473
471
| | </ul> |
474
472
++------------------+--------------------------------------------------------------------------------------+
475
473
476
- A <a>user agent</a> MUST dispatch this event when an <a>event
477
- target</a> is about to receive focus. This event type MUST be
478
- dispatched before the element is given focus. The <a>event
479
- target</a> MUST be the element which is about to receive focus.
480
- This event type is similar to EVENT{focus}, but is dispatched
481
- before focus is shifted, and does bubble.
482
-
483
- <p class="note">
484
- When using this event type, the content author can use the event's
485
- {{FocusEvent/relatedTarget}} attribute (or a host-language-specific
486
- method or means) to get the currently focused element before the
487
- focus shifts to the next focus <a>event target</a>, thus having
488
- access to both the element losing focus and the element gaining
489
- focus without the use of the EVENT{blur} or EVENT{focusout} event
490
- types.
491
- </p>
474
+ A <a>user agent</a> MUST dispatch this event when an <a>event target</a>
475
+ receives focus. The <a>event target</a> MUST be the element which
476
+ received focus. The [=focus=] event MUST fire before the dispatch of
477
+ this event type. This event type is similar to [=focus=], but does
478
+ bubble.
492
479
493
480
<h5 id="event-type-focusout"><dfn>focusout</dfn></h5>
494
481
@@ -512,12 +499,10 @@ events.
512
499
| | </ul> |
513
500
++------------------+--------------------------------------------------------------------------------------+
514
501
515
- A <a>user agent</a> MUST dispatch this event when an <a>event
516
- target</a> is about to lose focus. This event type MUST be
517
- dispatched before the element loses focus. The <a>event target</a>
518
- MUST be the element which is about to lose focus. This event type
519
- is similar to EVENT{blur}, but is dispatched before focus is
520
- shifted, and does bubble.
502
+ A <a>user agent</a> MUST dispatch this event when an <a>event target</a>
503
+ loses focus. The <a>event target</a> MUST be the element which lost
504
+ focus. The [=blur=] event MUST fire before the dispatch of this event
505
+ type. This event type is similar to [=blur=], but does bubble.
521
506
522
507
<h3 id="events-mouseevents">Mouse Events</h3>
523
508
0 commit comments