{"_id":"scrollparent","_rev":"8-c060e27d68c3039d4a70ea4cf3c9b6e4","name":"scrollparent","description":"A function to get the scrolling parent of an html element.","dist-tags":{"latest":"2.1.0"},"versions":{"0.1.0":{"name":"scrollparent","version":"0.1.0","description":"A function to get the scrolling parent of an html element.","main":"scrollparent.js","repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"keywords":["browser","scroll","scrollparent","dom"],"author":{"name":"Ola Holmström"},"license":"ISC","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"homepage":"https://github.com/olahol/scrollparent.js#readme","gitHead":"eab407a21731ff9a33daa1f76491c647c13565d1","_id":"scrollparent@0.1.0","scripts":{},"_shasum":"e7a0460e9920372eb3cc0182add0e0e356f6349e","_from":".","_npmVersion":"2.10.0","_nodeVersion":"0.10.38","_npmUser":{"name":"olahol","email":"olaholmstrom@gmail.com"},"maintainers":[{"name":"olahol","email":"olaholmstrom@gmail.com"}],"dist":{"shasum":"e7a0460e9920372eb3cc0182add0e0e356f6349e","tarball":"https://registry.npmjs.org/scrollparent/-/scrollparent-0.1.0.tgz","integrity":"sha512-mvxfYZ8D23hvluh7EZ1PQVaUfUT7MJjED4b+G+FDGDkXYr/Zm9OFMk0OEfW0cefMB4JsfYpoEKoddE0CYYFVCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDuR4eSfe1WyqNCn7SagSYngs5tg5ByL2RZWiwmZAu6ZAiBa2KlGSptcRoMqD50HoW+wNiXH2bGDzMtc8wq2UG66tQ=="}]},"directories":{}},"1.0.0":{"name":"scrollparent","version":"1.0.0","description":"A function to get the scrolling parent of an html element.","main":"scrollparent.js","repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"keywords":["browser","scroll","scrollparent","dom"],"author":{"name":"Ola Holmström"},"license":"ISC","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"homepage":"https://github.com/olahol/scrollparent.js#readme","gitHead":"5a548f11d77a521fcf9455c46f29b79eebc415b3","_id":"scrollparent@1.0.0","scripts":{},"_shasum":"1fb7cf9c53e11c0ea30e2bd08cfd8ae8d990ceba","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"olahol","email":"olaholmstrom@gmail.com"},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"dist":{"shasum":"1fb7cf9c53e11c0ea30e2bd08cfd8ae8d990ceba","tarball":"https://registry.npmjs.org/scrollparent/-/scrollparent-1.0.0.tgz","integrity":"sha512-/Z+7J1d95m3ntTB2ENqGquV0Vix93mOS33nIAb8vP+1ujC/rb6iVbIaACLd4a8Wh8qb0tjum+CsL1yd2lOctwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjN3m5BlkyTPvyHnyOtOrte9p/gKErqEzDKVmBlrZrEwIgPCMFx3C5gwEl1neYoIqDL9umep68NBAXJvmRWRcnvUQ="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/scrollparent-1.0.0.tgz_1458323881923_0.7152569289319217"},"directories":{}},"1.0.2":{"name":"scrollparent","version":"1.0.2","description":"A function to get the scrolling parent of an html element.","main":"scrollparent.js","repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"keywords":["browser","scroll","scrollparent","dom"],"author":{"name":"Ola Holmström"},"license":"ISC","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"homepage":"https://github.com/olahol/scrollparent.js#readme","gitHead":"eb147b277836aff661a982830144d609b6e5ac42","_id":"scrollparent@1.0.2","scripts":{},"_shasum":"6df02c7b231431eb0308364c9a9a3e5d278dc538","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"olahol","email":"ola.holmstrom@gmail.com"},"dist":{"shasum":"6df02c7b231431eb0308364c9a9a3e5d278dc538","tarball":"https://registry.npmjs.org/scrollparent/-/scrollparent-1.0.2.tgz","integrity":"sha512-hIfi6Gy0hKzPO5oB7S9ikT0YBrPBq3aN02kLlqM6Pw4tgAK0f4qFGnqeQvV1zTba7KP8UW+nvcOie6uW6uKHYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAkVIrUyPqiSB2x67JL/Bkdj+S3czbicOM7VIoV0NckHAiEA9cmlp6bMWkB+m6LVPTzsC1pRVX3ZNpiAaigQrbSnjRA="}]},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/scrollparent-1.0.2.tgz_1476723098686_0.1366735075134784"},"directories":{}},"2.0.0":{"name":"scrollparent","version":"2.0.0","description":"A function to get the scrolling parent of an html element.","main":"scrollparent.js","repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"keywords":["browser","scroll","scrollparent","dom"],"author":{"name":"Ola Holmström"},"license":"ISC","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"homepage":"https://github.com/olahol/scrollparent.js#readme","gitHead":"9188bea452d4bd91ae05a39c01dc1f86375e3d31","_id":"scrollparent@2.0.0","scripts":{},"_shasum":"b3e31192f5e2017efc3109df5b4fd4da8bac32f0","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"olahol","email":"ola.holmstrom@gmail.com"},"dist":{"shasum":"b3e31192f5e2017efc3109df5b4fd4da8bac32f0","tarball":"https://registry.npmjs.org/scrollparent/-/scrollparent-2.0.0.tgz","integrity":"sha512-4jdhvBoy45JKzWqLLq/9KO59Qu98nemm0Uc7G3uthLiUhshc6ZWpMafqditByQz1QVx1R06rAElDPij6eauSjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/K2WeNbrTNaNtmy542xwpciP8ylgehBEQCdXSEWjfUwIgAe9XWFc+4th6s3uRs/4o9yxlgFsNFAoE8+WGWmYnGk4="}]},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/scrollparent-2.0.0.tgz_1491756240381_0.6003415586892515"},"directories":{}},"2.0.1":{"name":"scrollparent","version":"2.0.1","description":"A function to get the scrolling parent of an html element.","main":"scrollparent.js","repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"keywords":["browser","scroll","scrollparent","dom"],"author":{"name":"Ola Holmström"},"license":"ISC","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"homepage":"https://github.com/olahol/scrollparent.js#readme","gitHead":"5b8186327d1240a1fb339210b9b49135436bea89","_id":"scrollparent@2.0.1","scripts":{},"_shasum":"715d5b9cc57760fb22bdccc3befb5bfe06b1a317","_from":".","_npmVersion":"3.9.3","_nodeVersion":"6.2.1","_npmUser":{"name":"olahol","email":"ola.holmstrom@gmail.com"},"dist":{"shasum":"715d5b9cc57760fb22bdccc3befb5bfe06b1a317","tarball":"https://registry.npmjs.org/scrollparent/-/scrollparent-2.0.1.tgz","integrity":"sha512-HSdN78VMvFCSGCkh0oYX/tY4R3P1DW61f8+TeZZ4j2VLgfwvw0bpRSOv4PCVKisktIwbzHCfZsx+rLbbDBqIBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2j5hmlcEM1NXfDJUqup8F8DmNjzMYh2gAmjkHzKSpoQIgNIH18EXhzYw1od8pqBEAO+OM6f8TW4ZufEqsmkZDfgo="}]},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/scrollparent-2.0.1.tgz_1491850106007_0.5349804200232029"},"directories":{}},"2.1.0":{"name":"scrollparent","version":"2.1.0","description":"A function to get the scrolling parent of an html element.","main":"scrollparent.js","repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"keywords":["browser","scroll","scrollparent","dom"],"author":{"name":"Ola Holmström"},"license":"ISC","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"homepage":"https://github.com/olahol/scrollparent.js#readme","devDependencies":{"@playwright/test":"^1.27.1","es5-validator":"^1.3.1"},"scripts":{"test":"playwright test","lint":"es5-validator scrollparent.js"},"gitHead":"ac1f5a8ff47798cedb8dd24bebd63d689a05e372","_id":"scrollparent@2.1.0","_nodeVersion":"14.17.0","_npmVersion":"9.6.3","dist":{"integrity":"sha512-bnnvJL28/Rtz/kz2+4wpBjHzWoEzXhVg/TE8BeVGJHUqE8THNIRnDxDWMktwM+qahvlRdvlLdsQfYe+cuqfZeA==","shasum":"6cae915c953835886a6ba0d77fdc2bb1ed09076d","tarball":"https://registry.npmjs.org/scrollparent/-/scrollparent-2.1.0.tgz","fileCount":4,"unpackedSize":4425,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoKhTKB4CxG8yNC+aFljPtGoG3eO9HAYivwYI6IweGvgIgbthVro53CLf/EVUXg/JfkweEd1J6incs4T3JIuQgIe4="}]},"_npmUser":{"name":"olahol","email":"soft.note0993@fastmail.com"},"directories":{},"maintainers":[{"name":"olahol","email":"soft.note0993@fastmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scrollparent_2.1.0_1685308408712_0.31052838702912444"},"_hasShrinkwrap":false}},"readme":"# scrollparent\n\n[![NPM version][npm-image]][npm-url]\n[![Size][size-image]][size-url]\n[![Download count][downloads-image]][downloads-url]\n![Build status][build-image]\n\nA function to get the scrolling parent of a html element.\n\n## Install\n\n```bash\nnpm install scrollparent --save\n```\n\n## Example\n\n```js\nvar Scrollparent = require(\"scrollparent\");\n\nScrollparent(document.getElementById(\"content\")) // HTMLHtmlElement or HTMLBodyElement as appropriate\n```\n\n```js\nvar Scrollparent = require(\"scrollparent\");\n\nScrollparent(document.getElementById(\"inside-a-scrolling-div\")) // HTMLDivElement\n```\n\n## Note about the root scrolling element\n\nInternally, the root scrolling element is determined in this library\nas the result of\n\n```js\ndocument.scrollingElement || document.documentElement;\n```\n\nThis should give a usable result in most browsers today\nbut if you want to ensure full support\nyou should use a `document.scrollingElement` polyfill such as\n[this one](https://github.com/mathiasbynens/document.scrollingElement).\n\n## Contributors\n\n<a href=\"https://github.com/olahol/scrollparent.js/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=olahol/scrollparent.js\" />\n</a>\n\n## License\n\nMIT\n\n[build-image]: https://github.com/olahol/scrollparent.js/actions/workflows/playwright.yml/badge.svg\n[npm-image]: https://img.shields.io/npm/v/scrollparent.svg\n[npm-url]: https://npmjs.org/package/scrollparent\n[downloads-image]: http://img.shields.io/npm/dm/scrollparent.svg\n[downloads-url]: https://npmjs.org/package/scrollparent\n[size-image]: https://img.badgesize.io/olahol/scrollparent.js/master/scrollparent.js.svg\n[size-url]: https://github.com/olahol/scrollparent.js/blob/master/scrollparent.js\n","maintainers":[{"name":"olahol","email":"soft.note0993@fastmail.com"}],"time":{"modified":"2023-05-28T21:13:29.013Z","created":"2015-07-08T01:39:46.299Z","0.1.0":"2015-07-08T01:39:46.299Z","1.0.0":"2016-03-18T17:58:04.274Z","1.0.2":"2016-10-17T16:51:40.575Z","2.0.0":"2017-04-09T16:44:01.049Z","2.0.1":"2017-04-10T18:48:27.856Z","2.1.0":"2023-05-28T21:13:28.903Z"},"homepage":"https://github.com/olahol/scrollparent.js#readme","keywords":["browser","scroll","scrollparent","dom"],"repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"author":{"name":"Ola Holmström"},"bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"license":"ISC","readmeFilename":"README.md"}