controlsList attribute doesn't reflect valid arguments |
|||
Issue descriptionGoogle 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?
,
Sep 27 2017
It's a feature request, but it should be fairly trivial.
,
Oct 17 2017
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.
,
Oct 17 2017
Thanks! Here's the PR for updating documentation: https://github.com/google/WebFundamentals/pull/5163 |
|||
►
Sign in to add a comment |
|||
Comment 1 by fbeaufort@chromium.org
, Sep 20 2017Note that video.controlsList.supports('foobar') returns false.