Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

scrollingelement

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrollingelement

A `document.scrollingElement` polyfill.

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
increased by5.74%
Maintainers
1
Weekly downloads
 
Created
Source

document.scrollingElement

A polyfill for document.scrollingElement as defined in the CSSOM specification.

Installation

In an HTML document:

<script src="scrollingelement.js"></script>

It’s recommended to place this right before the closing </body> tag.

The polyfill can be used in frameset HTML documents (in that case, place the <script> in the <head>) or in XML documents as well.

Browser support

The polyfill has been tested in the following browsers:

Acknowledgements

Thanks to Diego Perini (@diegoperini) for his getScrollingElement implementation, and for allowing me to re-use it as part of this polyfill.

Thanks to Simon Pieters (@zcorpan) for reviewing the code.

Author

twitter/mathias
Mathias Bynens

License

This project is available under the MIT license.

Keywords

FAQs

Package last updated on 14 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc