{"_id":"inert-polyfill","_rev":"15-10790bb8d4e837615eecb545d46d6f8e","name":"inert-polyfill","description":"Polyfill for the HTML inert attribute","dist-tags":{"latest":"0.2.5"},"versions":{"0.2.0":{"name":"inert-polyfill","version":"0.2.0","description":"Polyfill for the HTML inert attribute","main":"inert-polyfill.min.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/inert-polyfill.git"},"author":{"name":"The Chromium Authors"},"license":"Apache2","homepage":"https://github.com/GoogleChrome/inert-polyfill","gitHead":"b437092604e09a228bedd7c63f667f1c49be73ab","bugs":{"url":"https://github.com/GoogleChrome/inert-polyfill/issues"},"_id":"inert-polyfill@0.2.0","scripts":{},"_shasum":"78f93cb6cdb97766a0e8281c7324360e1aa44d98","_from":".","_npmVersion":"2.12.1","_nodeVersion":"0.12.7","_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"dist":{"shasum":"78f93cb6cdb97766a0e8281c7324360e1aa44d98","tarball":"https://registry.npmjs.org/inert-polyfill/-/inert-polyfill-0.2.0.tgz","integrity":"sha512-d8deR69WXoaX5TbXUEsyhEWxEgGDhm/x7reO39BSQ9xRI3BFHlm9to+MMeCqeT39u+OlJh9Z6X7v5BHuHdMnoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH1mnVMIkyfh+/4M7Z/n87ODjfAJmD3bVLFki/5yCW/5AiAy8nuLuGhp0yI7wFVhC/GvJozYBrf1sM+Hkc5WEEk6qg=="}]},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"directories":{}},"0.2.1":{"name":"inert-polyfill","version":"0.2.1","description":"Polyfill for the HTML inert attribute","main":"inert-polyfill.min.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/inert-polyfill.git"},"author":{"name":"The Chromium Authors"},"license":"Apache2","homepage":"https://github.com/GoogleChrome/inert-polyfill","gitHead":"76ff0d1e71fa7bfee1db8528e24bfdfd21ca3115","bugs":{"url":"https://github.com/GoogleChrome/inert-polyfill/issues"},"_id":"inert-polyfill@0.2.1","scripts":{},"_shasum":"b825a6a9122d3e537e8ea54fcaa515af604ff3f0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"dist":{"shasum":"b825a6a9122d3e537e8ea54fcaa515af604ff3f0","tarball":"https://registry.npmjs.org/inert-polyfill/-/inert-polyfill-0.2.1.tgz","integrity":"sha512-9F+oEBzkeceuWs2+BqPGZZ67nKRbNuUUQK9UO5X+vUNAafU9HbSxGUUKWRhFQxcZllszAx+DRU/u+GA51VRVhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7XT0MWSWNBHf+CeXZDWGH9rc60LilGoZNHGxRiq0mmQIgEnaBaVVyD/8SGiIUsHYOVb/apCQCJBKXlwKuodownXk="}]},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/inert-polyfill-0.2.1.tgz_1470353246146_0.044696026016026735"},"directories":{}},"0.2.2":{"name":"inert-polyfill","version":"0.2.2","description":"Polyfill for the HTML inert attribute","main":"inert-polyfill.min.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/inert-polyfill.git"},"author":{"name":"The Chromium Authors"},"license":"Apache2","homepage":"https://github.com/GoogleChrome/inert-polyfill","gitHead":"8cb1a48986a97754fbab49ac6dc44030aa376edf","bugs":{"url":"https://github.com/GoogleChrome/inert-polyfill/issues"},"_id":"inert-polyfill@0.2.2","scripts":{},"_shasum":"2b419e7ace62ef418153b120d9d481ed8fc87c58","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"dist":{"shasum":"2b419e7ace62ef418153b120d9d481ed8fc87c58","tarball":"https://registry.npmjs.org/inert-polyfill/-/inert-polyfill-0.2.2.tgz","integrity":"sha512-ZQRW1yvIF1QjZAZb2L2pXgepXZ/bldQHxK6ff7lYp0HOlpsTyrnYTaoa6RB1PXqhAOFzyXfADealQGDPrkSwNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhKTT/cVevLoLP/AmzFtGkboiSeyRFIxVTV70L8+MyrQIgBq8YYQwKN1jMYk2CVh3XuwC9vs+8WIo0YSajJaMghow="}]},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/inert-polyfill-0.2.2.tgz_1480911622120_0.8644530654419214"},"directories":{}},"0.2.3":{"name":"inert-polyfill","version":"0.2.3","description":"Polyfill for the HTML inert attribute","main":"inert-polyfill.min.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/inert-polyfill.git"},"author":{"name":"The Chromium Authors"},"license":"Apache2","homepage":"https://github.com/GoogleChrome/inert-polyfill","gitHead":"9dceb8feb41e5153c7b9ffb0ebf52dfe1d62d84b","bugs":{"url":"https://github.com/GoogleChrome/inert-polyfill/issues"},"_id":"inert-polyfill@0.2.3","scripts":{},"_shasum":"452c63551db5ba0dca7cbd14b2a7afbf49367272","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.7.0","_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"dist":{"shasum":"452c63551db5ba0dca7cbd14b2a7afbf49367272","tarball":"https://registry.npmjs.org/inert-polyfill/-/inert-polyfill-0.2.3.tgz","integrity":"sha512-nbelyZxDtd3BjH9TJ8lUETDTR91cyOuUCwM6Fu7xtMlAeRky4UPsdPZqvyEXb88cZdcy2BYfYSNA4cIekxaqYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGknsFOmQNXr2PCphCVVlsDDRit8NGXR8/IzU6yVJpPeAiEAz6XqZ23h6zYIIoLeFel6xTT3gsFkAbx0l4LDlc4dzJU="}]},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/inert-polyfill-0.2.3.tgz_1484782268951_0.7671196174342185"},"directories":{}},"0.2.4":{"name":"inert-polyfill","version":"0.2.4","description":"Polyfill for the HTML inert attribute","main":"inert-polyfill.min.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/inert-polyfill.git"},"author":{"name":"The Chromium Authors"},"license":"Apache2","homepage":"https://github.com/GoogleChrome/inert-polyfill","gitHead":"1af740154a39765cea42c8123896a823b6b356c3","bugs":{"url":"https://github.com/GoogleChrome/inert-polyfill/issues"},"_id":"inert-polyfill@0.2.4","_npmVersion":"5.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"dist":{"integrity":"sha512-UHkHYoW/GDcCLTFm4RU+DcuvPY9oKE8U0owdpQ2TjbSWf46c5VNMZTTj9bsv1rbksml9aKR1ph87rZRk5A1q+w==","shasum":"f7c92064065dc15631c1be859365f36f2ca83f6b","tarball":"https://registry.npmjs.org/inert-polyfill/-/inert-polyfill-0.2.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYFkY93eoVxEe3quhACUjJbBj+MOrS4gApovyQxEOckAiEAtnM+CylXvHGDSWwysnq5Eu0MvVuQbOLQRghTHjPcu5A="}]},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inert-polyfill-0.2.4.tgz_1504835888277_0.12680934695526958"},"directories":{}},"0.2.5":{"name":"inert-polyfill","version":"0.2.5","description":"Polyfill for the HTML inert attribute","main":"inert-polyfill.min.js","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/inert-polyfill.git"},"author":{"name":"The Chromium Authors"},"license":"Apache2","homepage":"https://github.com/GoogleChrome/inert-polyfill","gitHead":"d307e9a64e3c8efaacf8fbe2efbdde8bbdf7a5e6","bugs":{"url":"https://github.com/GoogleChrome/inert-polyfill/issues"},"_id":"inert-polyfill@0.2.5","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"samthor","email":"sam.thorogood@gmail.com"},"dist":{"integrity":"sha512-on1Nri2CciTI8hc+BaIGCe1pDO3Qzniivt9HALcse/NGvUvu/4t2uh6REwOU5fx/Nsb5c3dCRPJdvinYH0mlkg==","shasum":"16fb7280d3acc6b5314ce4b1af3418cb0d273c1e","tarball":"https://registry.npmjs.org/inert-polyfill/-/inert-polyfill-0.2.5.tgz","npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2vv5CRA9TVsSAnZWagAAIdYP/3IPkl/uDPnUcZMtyeYA\nkENyXbo8FnT9E6Z0wIypnG4wEZyq4bEqW3vc+Olnd5PJDBJtrkPYOB+4VwBP\nWqsesMgt/WDRmRLiqmHv++yRvwwKhHneB4bEbV339Ove9lgzxiSua878+Xpf\n2o3+KI9g6exw35vVqs7clN0HDmiEHAtX/cxhDVB39zfhNVb7ecoqtSt11vMF\npfQ/+V8X/hS6rpBumHQ5mD8yyleRJ9zRYcYF/lHObyp2EgrE2zBI/Psc25zK\nWBQPQZRclAQNu6uoJKBmq/fNJ1QaV/uCe4S6dcuyZY+vhLjG9zXUNqX2ZYRD\njeorh8YW28W3Zj27fQ03ZrymycLOtxEKa5xDmdZrXQfbOSHVvkWZ1A1MXcJ8\nrLUylWB5O5CuUl+f1H3VxOQWBSjXVx+sc7eUfmYZq8PuMfuzpJNTjV795VK9\nohh8v8IYiZAjl1CIAc8DCKa3TobPjjrbWIe3ih5aik1kPFDp+cRp88n/iS44\n+K7FZUKmf2002P6AvmaGmneU15SQjJg3kqlbAXSnrJ91Aa2E/ZKBhTK8Uz5S\niORstODyhvqrLuVDB0fMTT314Y2k6SUFjS3tNN/CWAPB0+nUaR0cJjbON9Pm\nZINbENidOty5bdlgrzEbJ/2EWheVsuzYg3adbo2gFH2PCpW8e1r5MlXFUKD9\nL1XY\r\n=H06w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiXLUgvFc47Soq0/iI0+DVh+ZDVpbrNBI/0gFiItWsZgIgWOuqgT9d7qio3ge4eP8Rar2MZswtcoUMD0+OWWuLLak="}]},"maintainers":[{"name":"samthor","email":"sam.thorogood@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inert-polyfill-0.2.5.tgz_1511222725461_0.26249139616265893"},"directories":{}}},"readme":"Polyfill for the `inert` HTML attribute. [Check out a small demo](https://rawgit.com/GoogleChrome/inert-polyfill/master/demo.html).\n\nThe `inert` attribute is a [draft feature](https://html.spec.whatwg.org/multipage/interaction.html#inert-subtrees) [of HTML](http://drafts.htmlwg.org/html/master/editing.html#inert-subtrees).\nAs of Feb 2017, no browser has a native implementation of `inert`.\nHowever, there is [active development](https://codereview.chromium.org/2088453002/) inside Chrome, and other browsers have shown some renewed interest.\n\nFrom the HTML spec-\n\n> A node (in particular elements and text nodes) can be marked as inert.\n> When a node is inert, then the user agent must act as if the node was absent for the purposes of targeting user interaction events, may ignore the node for the purposes of text search user interfaces (commonly known as \"find in page\"), and may prevent the user from selecting text in that node.\n\nWhile not a replacement for proper state management, web developers can use the `inert` attribute to prevent access to subtrees.\nThis could be useful to prevent access to active HTML forms, to enable modal-like popovers, or to block user interaction while awaiting the result of an asynchronous operation.\n\n## Example\n\n```html\n<div inert>\n  <button>I'm unclickable!</button>\n  <input type=\"text\" placeholder=\"I'm unfocusable!\" />\n</div>\n```\n\n## Usage\n\nInclude the [inert-polyfill script](https://cdn.rawgit.com/GoogleChrome/inert-polyfill/v0.1.0/inert-polyfill.min.js) at the end of your page.\nThere are no other initialization steps.\n\nThe polyfill prevents tab-focusing, using the `accessKey` to access an element, the `click` event (mostly for sanity, as elements should be unfocusable), and any other approach to focus.\n\n### Installation\n\nYou may optionally install via NPM or Bower-\n\n    $ npm install inert-polyfill\n    $ bower install inert-polyfill\n\n### Supports\n\nThis polyfill works on modern versions of all major browsers.\nIt also supports IE9 and above, although links and buttons may appear clickable (IE9 and IE10 do not support `pointer-events`, although there is a [polyfill](https://github.com/kmewhort/pointer_events_polyfill)).\n\n## Limitations\n\nMost limitations revolve around keyboard access and the tab key-\n\n- Most browsers don't support emulating tab events, so positive values of `tabIndex` may be ignored\n  - Avoid relying on a specific tab order\n- Inert elements at the very start or end of a page may prevent tab access to the browser's chrome\n- While tabbing over inert elements, inner elements may still receive intermediate `focus` and `blur` events\n\nOther limitations include-\n\n- Content within an inert element may still be searched for (using the browser's Find box) or selected\n- Focused elements that become inert due to surrounding HTML changes will remain focused\n- Inert will work within a shadow root, but the CSS to support it is not included\n\nIf these limitations do not work for your project, there is also a [WICG polyfill](https://github.com/WICG/inert), which uses `MutationObserver` to recursively walk HTML trees to clear `tabIndex` (clearing or setting to -1).\nThis is more _correct_, but will incur a performance hit when inert is enabled or disabled.\nThe `GoogleChrome` hosted polyfill simply overloads `focus` and related events to prevent focus.\n\n# Release\n\nCompile code with [Closure Compiler](https://closure-compiler.appspot.com/home).\n\n```\n// ==ClosureCompiler==\n// @compilation_level ADVANCED_OPTIMIZATIONS\n// @output_file_name inert-polyfill.min.js\n// ==/ClosureCompiler==\n\n// code here\n```\n","maintainers":[{"email":"sam.thorogood@gmail.com","name":"samthor"},{"email":"node-team-npm+wombot@google.com","name":"google-wombot"}],"time":{"modified":"2022-06-19T01:07:59.060Z","created":"2015-09-01T04:24:01.054Z","0.2.0":"2015-09-01T04:24:01.054Z","0.2.1":"2016-08-04T23:27:28.366Z","0.2.2":"2016-12-05T04:20:23.868Z","0.2.3":"2017-01-18T23:31:09.254Z","0.2.4":"2017-09-08T01:58:08.809Z","0.2.5":"2017-11-21T00:05:25.583Z"},"homepage":"https://github.com/GoogleChrome/inert-polyfill","repository":{"type":"git","url":"git+https://github.com/GoogleChrome/inert-polyfill.git"},"author":{"name":"The Chromium Authors"},"bugs":{"url":"https://github.com/GoogleChrome/inert-polyfill/issues"},"license":"Apache2","readmeFilename":"README.md","users":{"samthor":true,"tmurngon":true}}