New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 766947 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

controlsList attribute doesn't reflect valid arguments

Project Member Reported by fbeaufort@chromium.org, Sep 20 2017

Issue description

Google Chrome	63.0.3218.0 (Official Build) canary (64-bit)

According to https://developers.google.com/web/updates/2017/03/chrome-58-media-updates#controlslist, controlsList attribute should reflect valid arguments.

In other words:

<video controls controlsList="nofullscreen foobar"></video>
<script>
var video = document.querySelector('video');
video.controlsList; // "nofullscreen" - "foobar" not present
</script>

It is not what happens in my JavaScript: "foobar" is present.
Is this WAI or a legit bug?
 
Note that video.controlsList.supports('foobar') returns false.
Labels: -Type-Bug Type-Feature
Status: Available (was: Untriaged)
It's a feature request, but it should be fairly trivial.
Status: WontFix (was: Available)
Unfortunately, this is a bug in the documentation. DOMTokenList unfortunately, doesn't reflect validity this way and requires developers to use `supports()`. We probably don't want to have `controlsList` behaving differently.
Thanks! Here's the PR for updating documentation: https://github.com/google/WebFundamentals/pull/5163

Sign in to add a comment