Skip to content

Commit

Permalink
Undo README changes
Browse files Browse the repository at this point in the history
The readme is the biggest source of conflict as the pull lingers.

Will restore after the functional changes land.
  • Loading branch information
beck committed Nov 18, 2017
1 parent 3812660 commit 698d927
Showing 1 changed file with 12 additions and 50 deletions.
62 changes: 12 additions & 50 deletions README.md
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"

0 comments on commit 698d927

Please sign in to comment.