Skip to content

Commit 5c72da2

Browse files
committed
blur:focus: document IE-related changes in jQuery 3.7
1 parent e52362a commit 5c72da2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

entries/blur.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ $( "#other" ).on( "click", function() {
5151
</code></pre>
5252
<p>After this code executes, clicks on <samp>Trigger the handler</samp> will also alert the message.</p>
5353
<p>The <code>blur</code> event does not bubble. As of version 1.4.2, jQuery works around this limitation by mapping <code>blur</code> to the <code>focusout</code> event in its event delegation methods.</p>
54+
<p>The native <code>blur</code> event is asynchronous in all versions of IE, contrary to other browsers. To avoid issues related to this discrepancy, as of jQuery 3.7.0, jQuery uses <code>focusout</code> as the native backing event for <code>blur</code> in IE.</p>
5455
</longdesc>
5556
<example>
5657
<desc>To trigger the blur event on all paragraphs:</desc>
@@ -62,6 +63,7 @@ $( "p" ).trigger( "blur" );
6263
<category slug="forms"/>
6364
<category slug="version/1.0"/>
6465
<category slug="version/1.7"/>
66+
<category slug="version/3.7"/>
6567
</entry>
6668

6769
<entry type="method" name="trigger" return="jQuery">

entries/focus.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ $( "#other" ).on( "click", function() {
5757
</code></pre>
5858
<p>After this code executes, clicks on <samp>Trigger the handler</samp> will also alert the message.</p>
5959
<p>The <code>focus</code> event does not bubble. As of version 1.4.2, jQuery works around this limitation by mapping <code>focus</code> to the <code>focusin</code> event in its event delegation methods.</p>
60+
<p>The native <code>focus</code> event is asynchronous in all versions of IE, contrary to other browsers. To avoid issues related to this discrepancy, as of jQuery 3.7.0, jQuery uses <code>focusin</code> as the native backing event for <code>focus</code> in IE.</p>
6061
</longdesc>
6162
<example>
6263
<desc>Fire focus.</desc>
@@ -95,6 +96,7 @@ $( function() {
9596
<category slug="forms"/>
9697
<category slug="version/1.0"/>
9798
<category slug="version/1.7"/>
99+
<category slug="version/3.7"/>
98100
</entry>
99101

100102
<entry type="method" name="trigger" return="jQuery">

0 commit comments

Comments
 (0)