axe-selector
The
getSelector
method fromaxe-core
2.x as a standalone package.
The CSS selectors generated by this package are designed to be accurate, unique, and easy for humans to read/comprehend.
Installation
With npm
, do:
$ npm install --save axe-selector
Usage Example
// or with CommonJS:const getSelector = default const el = // Generate a selector.const selector =
Releasing
To create a new production release, run the following commands:
git checkout developgit pullgit fetch --tagsgit checkout -b my-release-branchnpm run releasegit push
Create a pull request into master from your release branch and request a review from dequelabs/html-team
License
MPL-2.0