-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The readme is the biggest source of conflict as the pull lingers. Will restore after the functional changes land.
- Loading branch information
Showing
1 changed file
with
12 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,18 @@ | ||
# classList.js | ||
classList.js is a cross-browser JavaScript shim that fully implements `element.classList`. Refer to [the MDN page on `element.classList`][1] for more information. | ||
|
||
[![Test Status](https://saucelabs.com/buildstatus/classlist-polyfill)][sauce] | ||
This works in every browser except IE 7 or earlier. | ||
|
||
[sauce]: https://saucelabs.com/u/classlist-polyfill | ||
classList.js is available on these public CDN URLs, allowing you to use this already small file at nearly zero size overhead. | ||
|
||
Cross-browser JavaScript shim that fully implements `element.classList`. | ||
- <https://cdnjs.cloudflare.com/ajax/libs/classlist/1.2.201711092/classList.min.js> | ||
- <https://cdn.jsdelivr.net/npm/[email protected]/classList.min.js> | ||
|
||
Refer to [the MDN page on `element.classList`][MDN] for more information. | ||
If you would like other versions (such as the current one) hosted there, follow the instructions at | ||
https://github.com/jsdelivr/jsdelivr | ||
and | ||
https://github.com/cdnjs/cdnjs | ||
to prepare a pull request. | ||
|
||
[MDN]: https://developer.mozilla.org/en/DOM/element.classList | ||
![Tracking image](https://in.getclicky.com/212712ns.gif) | ||
|
||
|
||
## Development | ||
|
||
### Getting started | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
### Run the tests using a local web driver | ||
|
||
``` | ||
npm test | ||
``` | ||
|
||
### Run the tests using cloud browsers | ||
|
||
Requires a [Sauce Labs][] username and access key. | ||
|
||
``` | ||
echo '{"user": "<username>", "key": "<access key>" }' > user.json | ||
npm test:ci | ||
``` | ||
|
||
[Sauce Labs]: https://saucelabs.com/ | ||
|
||
### Run the tests using custom configuration | ||
|
||
The tests use [webdriver.io][]. | ||
|
||
Create a `wdio.conf.js`: | ||
|
||
``` | ||
wdio config | ||
# or extend an existing config | ||
cp test/wdio.sample.js wdio.conf.js | ||
``` | ||
|
||
Run the tests: | ||
``` | ||
wdio | ||
``` | ||
|
||
[webdriver.io]: http://webdriver.io/ | ||
[1]: https://developer.mozilla.org/en/DOM/element.classList "MDN / DOM / element.classList" |