This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28231 - [WebVTT] Selectors ::cue([class=foo]) and ::cue([id=foo]) should work
Summary: [WebVTT] Selectors ::cue([class=foo]) and ::cue([id=foo]) should work
Status: NEW
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: WebVTT (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: Web Media Text Tracks CG
URL:
Whiteboard: v1
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-18 08:38 UTC by Simon Pieters
Modified: 2015-03-18 13:23 UTC (History)
2 users (show)

See Also:


Attachments

Description Simon Pieters 2015-03-18 08:38:03 UTC
http://dev.w3.org/html5/webvtt/#the-cue-pseudo-element

In WebVTT you can use ::cue(#foo) to select a cue with id foo, but you can't use ::cue([id=foo]) since the spec doesn't say to expose any attributes on the "list of WebVTT nodes" object for the purpose of matching Selectors.

Similarly, you can use ::cue(.foo) to select an element within a cue with the class "foo" but you can't use ::cue([class~=foo]).

This is limiting for authors (can't use = ~= ^= $=, the i flag, etc).

Making the attribute selectors *not* match seems like it complicates implementations. [1]

(Note that we already support ::cue(lang[lang=foo]) in addition to ::cue(lang:lang(foo)).)

[1] https://code.google.com/p/chromium/issues/detail?id=466072