{"versions":{"1.6.0":{"name":"focus-options-polyfill","version":"1.6.0","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server"},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","options","focusOptions","preventScroll","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"321a392a0a779d78d339cbf9f13bce5a0fe36045","_id":"focus-options-polyfill@1.6.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"12ef3081dae9801d32dfcffd7b69259ca8f57198","size":4034,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.6.0.tgz","integrity":"sha512-uyrAmLZrPnUItQY5wTdg31TO9GGZRGsh/jmohUg9oLmLi/sw5y7LlTV/mwyd6rvbxIOGwmRiv6LcTS8w7Bk9NQ=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.6.0_1599323461210_0.9721143620760218"},"_hasShrinkwrap":false,"publish_time":1599323461325,"_cnpm_publish_time":1599323461325,"_cnpmcore_publish_time":"2021-12-16T18:16:52.000Z","contributors":[]},"1.5.1":{"name":"focus-options-polyfill","version":"1.5.1","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server"},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","options","focusOptions","preventScroll","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"6f32aaff69953943fbcc716825000083c90f6d65","_id":"focus-options-polyfill@1.5.1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"0f422580d9d1fb65651f2968b547032eb17dab3c","size":4018,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.5.1.tgz","integrity":"sha512-7yH20IePROHJLLbJvqqtsG420jE6DuukccapiB/WagtUpnc98r9NzHbX5rnjCDgdZqLgcqlzGjn+8l0Zb8Zf9w=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.5.1_1599322472029_0.29133065893336374"},"_hasShrinkwrap":false,"publish_time":1599322472163,"_cnpm_publish_time":1599322472163,"_cnpmcore_publish_time":"2021-12-16T18:16:52.385Z","contributors":[]},"1.5.0":{"name":"focus-options-polyfill","version":"1.5.0","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server"},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","options","focusOptions","preventScroll","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"fef04ebe8a48ac55c6b5b00b6737f80ef4edadd2","_id":"focus-options-polyfill@1.5.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"fd2e6a0d6d8f828346726a5adf02f3d2bdfece5f","size":3888,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.5.0.tgz","integrity":"sha512-HiMSaXGUz2OFjOuoGTWXlp+YjZCGnVXPu6vPeccgaSOzGmqLVz8tJRcKXWfMJnj16LXf/IM1rJI0zrZMVc9q7g=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.5.0_1593082223912_0.25858990265457127"},"_hasShrinkwrap":false,"publish_time":1593082224053,"_cnpm_publish_time":1593082224053,"_cnpmcore_publish_time":"2021-12-16T18:16:52.598Z","contributors":[]},"1.4.0":{"name":"focus-options-polyfill","version":"1.4.0","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server"},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","options","focusOptions","preventScroll","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"5a0ae02642de68001b14d7dbce2a28c26f9a1132","_id":"focus-options-polyfill@1.4.0","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"shasum":"7165383e264bd24d02963d4a9322d110d627ade8","size":3714,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.4.0.tgz","integrity":"sha512-FqRrlu2o9DycNonZVAwdS4k12fNgRip9HIdTosjzOePgYrzH9wH0DeKPTSVdeKaElR4rILQOCAgWQZZSWP/n8A=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.4.0_1582046852003_0.4005183999242268"},"_hasShrinkwrap":false,"publish_time":1582046852113,"_cnpm_publish_time":1582046852113,"_cnpmcore_publish_time":"2021-12-16T18:16:52.827Z","contributors":[]},"1.3.0":{"name":"focus-options-polyfill","version":"1.3.0","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server"},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"d07c4a27d0b3cfc17bfa0d041e4d37eb137a8997","_id":"focus-options-polyfill@1.3.0","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"shasum":"b574943a5cd6a7f98b178c443be326b1db8fe005","size":3392,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.3.0.tgz","integrity":"sha512-Qi8SSzyATOx2dWEJegGjXyu1RJS2/7O1fnMBbGH+aggIcCbrKY5LKZ136lP90xpcwwTZo63VKAAignMyc5QCXg=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.3.0_1581694634933_0.09766197865028681"},"_hasShrinkwrap":false,"publish_time":1581694635032,"_cnpm_publish_time":1581694635032,"_cnpmcore_publish_time":"2021-12-16T18:16:53.052Z","contributors":[]},"1.2.0":{"name":"focus-options-polyfill","version":"1.2.0","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server"},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"20f4e65e93ba687594984e67b841c2d06a9bf51d","_id":"focus-options-polyfill@1.2.0","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"shasum":"9800ffb230bc9db63eea6d27694a62ac2e355946","size":2929,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.2.0.tgz","integrity":"sha512-4sgXxV/zU4WHM2IHWpjUmEWazbF6ie+M93/uo8ipfAbQ1GHopn+/V+Ca+PR0ndxswNQbisCNrjbnvWEq14MkTA=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.2.0_1580917831698_0.08359275912644826"},"_hasShrinkwrap":false,"publish_time":1580917831808,"_cnpm_publish_time":1580917831808,"_cnpmcore_publish_time":"2021-12-16T18:16:53.388Z","contributors":[]},"1.1.1":{"name":"focus-options-polyfill","version":"1.1.1","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server"},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"ddbd9069d014bc9525b3e31710f59806baadaca8","_id":"focus-options-polyfill@1.1.1","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"shasum":"4d01abd6daa058da3447065268d402ab7dd1bdc9","size":2862,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.1.1.tgz","integrity":"sha512-mpKQYRXdBnUid8bifeRnWjv7IPUHd8HLNCEIIQ0vNmwQm/m4mmv3iSXFHLWJYLfwAr8F4oNfppQE/Y+tK4H/RQ=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.1.1_1578667927692_0.3764062252520908"},"_hasShrinkwrap":false,"publish_time":1578667927785,"_cnpm_publish_time":1578667927785,"_cnpmcore_publish_time":"2021-12-16T18:16:53.728Z","contributors":[]},"1.1.0":{"name":"focus-options-polyfill","version":"1.1.0","description":"JavaScript polyfill for the WHATWG spec of focusOptions, that enables a set of options to be passed to the focus method.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"lite-server --baseDir=\"demo\""},"repository":{"type":"git","url":"git+https://github.com/calvellido/focus-options-polyfill.git"},"keywords":["javascript","polyfill","javascript-polyfill","focus","whatwg","whatwg-dom","js"],"author":{"name":"Juan Valencia Calvellido","email":"juanvalencia@calvellido.es","url":"https://calvellido.es"},"license":"MIT","bugs":{"url":"https://github.com/calvellido/focus-options-polyfill/issues"},"homepage":"https://github.com/calvellido/focus-options-polyfill#readme","devDependencies":{"lite-server":"^2.5.4"},"gitHead":"4e7bd553bec6cb3761d5823d34de4f33f48d28ad","_id":"focus-options-polyfill@1.1.0","_nodeVersion":"12.6.0","_npmVersion":"6.10.0","dist":{"shasum":"48ed7ef49dc86b3db77313944486b93fa8f50de3","size":2139,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/focus-options-polyfill/-/focus-options-polyfill-1.1.0.tgz","integrity":"sha512-/DsHGAMENkCK8Y/gXtqed7NDMZicXMWguo5goNyRfK2CSOX4MriVYsd4lrFDUZhHMuinU9C2AIZ8Twjev09XeA=="},"maintainers":[{"name":"anonymous","email":"juanvalencia@calvellido.es"}],"_npmUser":{"name":"anonymous","email":"juanvalencia@calvellido.es"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/focus-options-polyfill_1.1.0_1578667594185_0.42043824392959217"},"_hasShrinkwrap":false,"publish_time":1578667594321,"_cnpm_publish_time":1578667594321,"_cnpmcore_publish_time":"2021-12-16T18:16:53.903Z","contributors":[]}},"dist-tags":{"latest":"1.6.0"},"name":"focus-options-polyfill","time":{"created":"2022-01-26T21:43:50.690Z","modified":"2023-08-02T13:40:13.492Z","1.6.0":"2020-09-05T16:31:01.325Z","1.5.1":"2020-09-05T16:14:32.163Z","1.5.0":"2020-06-25T10:50:24.053Z","1.4.0":"2020-02-18T17:27:32.113Z","1.3.0":"2020-02-14T15:37:15.032Z","1.2.0":"2020-02-05T15:50:31.808Z","1.1.1":"2020-01-10T14:52:07.785Z","1.1.0":"2020-01-10T14:46:34.321Z"},"readme":"# focus-options-polyfill\n\n[![npm version](http://img.shields.io/npm/v/focus-options-polyfill.svg?label=npm%20package&style=flat-square&logo=npm&logoWidth=20)](https://npmjs.com/package/focus-options-polyfill \"View this project on npm\")\n\nJavaScript polyfill for `focusOptions`, an optional property passed to `HTMLElement.focus()` that contains the `preventScroll` boolean, which controls whether the browser should prevent a focused element from being scrolled into view.\n\n\n## Current support\n\nhttps://caniuse.com/#feat=mdn-api_htmlelement_focus_preventscroll_option\n\n\n## Docs\n\n* WHATWG Spec\n\n  https://html.spec.whatwg.org/multipage/interaction.html#dom-focusoptions-preventscroll\n\n* MDN Web Docs - focus\n\n  https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus\n\n\n## Intents to implement\n\n* Chrome/Chromium: Chrome Platform Status issue 734166 - Prevent scrolling in HTMLElement.focus()\n\n  https://www.chromestatus.com/feature/5745122025144320\n\n* Edge: Issue 14314565 - Enable ability to prevent scrolling in Element.focus()\n\n  https://web.archive.org/web/20190401133643/https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14314565/\n\n* Firefox: Bug 1374045 - Consider adding support for customizing scrolling behavior with Element.focus\n\n  https://bugzilla.mozilla.org/show_bug.cgi?id=1374045\n\n* Safari: WebKit Bug 178583 - Enable ability to prevent scrolling in Element.focus()\n\n  https://bugs.webkit.org/show_bug.cgi?id=178583\n\n\n## document.scrollingElement\n\nThis polyfill uses a basic fallback for the [document.scrollingElement](https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollingElement) property, using `document.documentElement` when not found.\n\nThis could suffice in basic cases, but if you need wider and/or specific support you should refer to a polyfill for it:\n\n* https://github.com/mathiasbynens/document.scrollingElement\n\nAlso, to overcome its absence if you are executing this polyfill through [`jsdom`](https://github.com/jsdom/jsdom), you could place this in your setup:\n\n```js\ndocument.scrollingElement = document.documentElement\n```\n\nMore context about this property can be found in:\n\n* https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollingElement\n* https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode\n* https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement\n\n\n## Dev and testing\n\nTo check this polyfill you can do:\n\n```bash\nnpm run dev\n```\n\nto launch a small page that will check browser/polyfill behaviour.","users":{}}