This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/ Multipage: http://www.whatwg.org/C#media-controllers Complete: http://www.whatwg.org/c#media-controllers Referrer: Comment: "restrained media controller" is ambiguous Posted from: 113.23.85.25 User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36 OPR/20.0.1387.59 (Edition Next)
"A MediaController is a restrained media controller if the MediaController is a playing media controller, and none of its slaved media elements are blocked media elements, but either at least one of its slaved media elements whose autoplaying flag is true still has its paused attribute set to true, or, all of its slaved media elements have their paused attribute set to true." What does the trailing "or, all of its slaved media elements have their paused attribute set to true." belong to? Can a paused media controller be a restrained media controller?
In code, I guess the possible interpretations are: (playing && noneBlocked && anyAutoplayingAndPaused) || allPaused; playing && noneBlocked && (anyAutoplayingAndPaused || allPaused);
> playing && noneBlocked && (anyAutoplayingAndPaused || allPaused); After a night's sleep I think this is the only possible interpretation because of the "either ... anyAutoplayingAndPaused ... or ... allPaused". This bug can be resolved as invalid or tweaked for readability as the editor sees fit.
The new text (due to other bugs changing it) is: "A MediaController is a restrained media controller if the MediaController is a playing media controller, but either at least one of its slaved media elements whose autoplaying flag is true still has its paused attribute set to true, or, all of its slaved media elements have their paused attribute set to true." This seems unambiguous. What do you think?
Yes, with the recent change I think it's very clear, resolving this as invalid.