- From: <bugzilla@jessica.w3.org>
- Date: Wed, 18 Mar 2015 08:38:03 +0000
- To: public-texttracks@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28231
Bug ID: 28231
Summary: Selectors ::cue([class=foo]) and ::cue([id=foo])
should work
Product: TextTracks CG
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: WebVTT
Assignee: dave.null@w3.org
Reporter: simonp@opera.com
QA Contact: public-texttracks@w3.org
CC: philipj@opera.com, silviapfeiffer1@gmail.com
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
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 18 March 2015 08:38:05 UTC