{"_id":"scrollparent","_rev":"3780132","name":"scrollparent","description":"A function to get the scrolling parent of an html element.","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"time":{"modified":"2025-05-09T07:36:33.000Z","created":"2015-07-08T01:39:46.299Z","2.1.0":"2023-05-28T21:13:28.903Z","2.0.1":"2017-04-10T18:48:27.856Z","2.0.0":"2017-04-09T16:44:01.049Z","1.0.2":"2016-10-17T16:51:40.575Z","1.0.0":"2016-03-18T17:58:04.274Z","0.1.0":"2015-07-08T01:39:46.299Z"},"users":{},"author":{"name":"Ola Holmström"},"repository":{"type":"git","url":"git+https://github.com/olahol/scrollparent.js.git"},"versions":{"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":{"shasum":"6cae915c953835886a6ba0d77fdc2bb1ed09076d","size":2109,"noattachment":false,"key":"/scrollparent/-/scrollparent-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scrollparent/download/scrollparent-2.1.0.tgz"},"_npmUser":{"name":"olahol","email":"soft.note0993@fastmail.com"},"directories":{},"maintainers":[{"name":"olahol","email":"ola.holmstrom@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/scrollparent_2.1.0_1685308408712_0.31052838702912444"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-28T21:13:28.903Z","publish_time":1685308408903,"_source_registry_name":"default","_cnpm_publish_time":1685308408903},"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","size":2977,"noattachment":false,"key":"/scrollparent/-/scrollparent-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/scrollparent/download/scrollparent-2.0.1.tgz"},"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":{},"publish_time":1491850107856,"_cnpm_publish_time":1491850107856,"_hasShrinkwrap":false},"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","size":2966,"noattachment":false,"key":"/scrollparent/-/scrollparent-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scrollparent/download/scrollparent-2.0.0.tgz"},"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":{},"publish_time":1491756241049,"_hasShrinkwrap":false,"_cnpm_publish_time":1491756241049},"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","size":2787,"noattachment":false,"key":"/scrollparent/-/scrollparent-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/scrollparent/download/scrollparent-1.0.2.tgz"},"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":{},"publish_time":1476723100575,"_cnpm_publish_time":1476723100575,"_hasShrinkwrap":false},"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","size":2604,"noattachment":false,"key":"/scrollparent/-/scrollparent-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scrollparent/download/scrollparent-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/scrollparent-1.0.0.tgz_1458323881923_0.7152569289319217"},"directories":{},"publish_time":1458323884274,"_cnpm_publish_time":1458323884274,"_hasShrinkwrap":false},"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":"ola.holmstrom@gmail.com"}],"dist":{"shasum":"e7a0460e9920372eb3cc0182add0e0e356f6349e","size":2575,"noattachment":false,"key":"/scrollparent/-/scrollparent-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/scrollparent/download/scrollparent-0.1.0.tgz"},"directories":{},"publish_time":1436319586299,"_cnpm_publish_time":1436319586299,"_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","_attachments":{},"homepage":"https://github.com/olahol/scrollparent.js#readme","bugs":{"url":"https://github.com/olahol/scrollparent.js/issues"},"license":"ISC"}