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

tabbable

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tabbable - npm Package Versions

1345

5.3.2

Diff

Changelog

Source

5.3.2

Patch Changes

  • 320bfd1: Updated docs for displayCheck configuration.
  • aa2a699: Fixed an issue with displayCheck=full (default setting) determining all nodes were hidden when the container is not attached to the document. In this case, tabbable will revert to a displayCheck=none mode, which is the equivalent legacy behavior. Also updated the displayCheck option docs to add warnings about this corner case for the full and non-zero-area modes. non-zero-area behaves differently in the corner case. See the docs for more info.
stefcameron
published 5.3.1 •

Changelog

Source

5.3.1

Patch Changes

  • cf1da66: Add warnings and help in documentation about running tabbable under JSDom (e.g. with Jest). JSDom is not technically supported, and 5.3.0 introduced some changes that use DOM APIs that JSDom stubs out, which may cause some JSDom-based tests to fail. Also revamp the API docs a bit to make them clearer, and add missing getShadowRoot option to isTabbable() and isFocusable() (docs only; no code changes necessary).
stefcameron
published 5.3.0 •

Changelog

Source

5.3.0

Minor Changes

  • 685a906: Adds new Shadow DOM support (must be explicitly enabled using the new getShadowRoot option).
    • When enabled, supports open shadows by default, and can support closed shadows if the option is a function that returns the shadow for a given node. See documentation for more information.
    • Includes all updates from 5.3.0-beta.0 and 5.3.0-beta.1 releases.

Patch Changes

  • b341412: Made "isDisabledFromFieldset" more readable and concise (even marginally faster).
  • 685a906: Fixed a bug in getTabIndex: the tab index of <audio>, <video> and <details> was left to the browser default if explicitly set to a value that couldn't be parsed as integer, leading to inconsistent behavior across browsers. Also slightly modified the function's logic to make it more efficient. Finally added tests to cover the fix.
  • dd6d0ec: Optimized and extended displayCheck: "full" option (now checks for any element having no display boxes) and added test for display: "contents" property (this bug was never reported). (#592)
    • ⚠️ This will likely break your tests if you're using JSDom (e.g. with Jest). See testing in JSDom for more info.
  • 193fca2: Fixed bug in isDisabledFromFieldset. The function wasn't checking whether the disabled <fieldset> containing node is the top-most disabled <fieldset> (#596).
stefcameron
published 5.3.0-beta.1 •

Changelog

Source

5.3.0-beta.1

  • Add support for setting getShadowRoot: true as an easy way to simply enable shadow DOM support. This is the equivalent of setting getShadowRoot: () => false, which means tabbable will find nodes in open shadow roots only.
stefcameron
published 5.3.0-beta.0 •

Changelog

Source

5.3.0-beta.0

  • Includes new Shadow DOM support for open shadows by default
  • Includes a new getShadowRoot() configuration option, enabling support for closed shadows
stefcameron
published 5.2.1 •

Changelog

Source

5.2.1

Patch Changes

  • 1d5fcb5: Fixed: Form elements in disabled fieldsets should not be tabbable/focusable (#413)
stefcameron
published 5.2.0 •

Changelog

Source

5.2.0

Minor Changes

  • bf0a8f0: Exposed an option to select the way that an element is checked as displayed
stefcameron
published 5.1.6 •

Changelog

Source

5.1.6

Patch Changes

  • f9f6d25: Replaces Karma/Mocha/Sinon/Chai in test suite with Jest/Dom Testing Library. Removes README reference to identifying anchor tags with an xlink:href attribute as tabbable since that information is incorrect.
stefcameron
published 5.1.5 •

Changelog

Source

5.1.5

Patch Changes

  • c048203: fix crash when radio button name attributes contain CSS selector special characters (#168)
stefcameron
published 5.1.4 •

Changelog

Source

5.1.4

Patch Changes

  • a188c71: use element.matches fallback for IE11 and Webkit5
  • 0d4cdf8: Update the code to use const/let and function declarations only for the repo; this does NOT affect browser compatibility as the code is still transpiled when published into the ./dist directory for various targets.
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