From 698d92792004132fb7c8483531e109953125fec2 Mon Sep 17 00:00:00 2001 From: Doug Beck Date: Fri, 17 Nov 2017 19:24:52 -0500 Subject: [PATCH] Undo README changes The readme is the biggest source of conflict as the pull lingers. Will restore after the functional changes land. --- README.md | 62 +++++++++++-------------------------------------------- 1 file changed, 12 insertions(+), 50 deletions(-) diff --git a/README.md b/README.md index 013957d..7d378f4 100644 --- a/README.md +++ b/README.md @@ -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`. + - + - -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": "", "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"