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 24674 - Cue and Region identifiers should be specified as unique identifiers
Summary: Cue and Region identifiers should be specified as unique identifiers
Status: RESOLVED FIXED
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: WebVTT (show other bugs)
Version: unspecified
Hardware: PC All
: 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: 2014-02-15 03:36 UTC by Silvia Pfeiffer
Modified: 2014-09-09 10:25 UTC (History)
3 users (show)

See Also:


Attachments

Description Silvia Pfeiffer 2014-02-15 03:36:34 UTC
It's not explicit in the spec that a WebVTT cue identifier and a WebVTT region identifier are supposed to be unique. But they should be - otherwise the CSS selection via ::cue(#identifier) makes no sense.
Comment 1 Simon Pieters 2014-02-17 16:17:40 UTC
Why does it not make sense? Selectors support duplicate IDs fine.
Comment 2 Silvia Pfeiffer 2014-02-18 01:07:48 UTC
Browsers will deal in CSS and HTML with multiple id attributes having the same value, but it's not conformant, not in HTML [1] and not in CSS [2].

[1] http://www.w3.org/html/wg/drafts/html/master/dom.html#the-id-attribute
[2] http://www.w3.org/TR/selectors/#id-selectors

I don't see why WebVTT should be different. WebVTT cue identifiers should also be unique.
Comment 3 Silvia Pfeiffer 2014-09-09 10:25:31 UTC
Fixed in commit:
https://github.com/w3c/webvtt/commit/8787b2532d0902525c2db5a8b1297c9e40809ef0