Skip to content

Commit

Permalink
Update detect-disabled.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion committed Sep 25, 2019
1 parent 1d64522 commit 443e56a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions polyfills/Event/focusin/detect-disabled.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* The detect and tests for the focusin/focusout polyfill have been shown to not work reliably. See https://github.com/Financial-Times/polyfill-service/issues/213 for details. The polyfill itself appears to work fine, but events progrmamatically fired during page load while dev tools is open appear not to be observable by the polyfill, which makes the test and detect unreliable. We're continuing to serve the polyfill as it's pretty simple but would love to get some better insight into this problem. */

(function(support, html, a) {
if ('onfocusin' in window) {
return true;
}

function onfocusin() {
support = true;
}
Expand Down

0 comments on commit 443e56a

Please sign in to comment.