Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add noplaybackrate supported token to controlsList #13

Merged
merged 1 commit into from
May 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ tokens](https://dom.spec.whatwg.org/#concept-supported-tokens).

Usage in HTML:
```html
<video controls controlslist="nofullscreen nodownload noremoteplayback foobar"></video>
<video controls controlslist="nofullscreen nodownload noremoteplayback noplaybackrate foobar"></video>
```

Usage in Javascript:
```javascript
var video = document.querySelector('video');
video.controls; // true
video.controlsList; // "nofullscreen nodownload noremoteplayback" - "foobar" not present
video.controlsList; // "nofullscreen nodownload noremoteplayback noplaybackrate" - "foobar" not present
video.controlsList.remove('noremoteplayback');
video.controlsList; // "nofullscreen nodownload" - "noremoteplayback" not present
video.getAttribute('controlslist'); // "nofullscreen nodownload"
video.controlsList; // "nofullscreen nodownload noplaybackrate" - "noremoteplayback" not present
video.getAttribute('controlslist'); // "nofullscreen nodownload noplaybackrate"
```