[Bug 19632] New: [WebVTT] cue identifier string clarification

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19632

          Priority: P2
            Bug ID: 19632
                CC: mike@w3.org, public-texttracks@w3.org
          Assignee: ian@hixie.ch
           Summary: [WebVTT] cue identifier string clarification
        QA Contact: dave.null@w3.org
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: silviapfeiffer1@gmail.com
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: WebVTT
           Product: TextTracks CG

The WebVTT spec says about cue identifiers:

"A WebVTT cue identifier is any sequence of one or more characters not
containing the substring "-->" (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS,
U+003E GREATER-THAN SIGN), nor containing any U+000A LINE FEED (LF) characters
or U+000D CARRIAGE RETURN (CR) characters."


And further in the CSS extension section about ::cue() selection:

"For the purposes of ID selector matching, Lists of WebVTT Node Objects have
the ID given by the cue's text track cue identifier, if any."

However, the CSS spec says:

"In CSS, identifiers (including element names, classes, and IDs in selectors)
can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A0 and
higher, plus the hyphen (-) and the underscore (_); they cannot start with a
digit, two hyphens, or a hyphen followed by a digit. Identifiers can also
contain escaped characters and any ISO 10646 character as a numeric code (see
next item). For instance, the identifier "B&W?" may be written as "B\&W\?" or
"B\26 W\3F"."

Thus, there are restrictions on the CSS ID selectors that we don't have on cue
identifiers and consequentually not every cue identifier can be interpreted as
a CSS ID selector. For example, what happens with a cue identifier that starts
with a number, or one that has spaces in it?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 19 October 2012 11:26:53 UTC