W3C home > Mailing lists > Public > www-international@w3.org > October to December 2016

[webvtt] Issue: Support character escapes in classes (<c.foo&amp; bar>) marked as i18n

From: r12a via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Oct 2016 10:12:13 +0000
To: www-international@w3.org
Message-ID: <issues.labeled-116534461-None-sysbot+gh@w3.org>
r12a has just labeled an issue for https://github.com/w3c/webvtt as 

== Support character escapes in classes (<c.foo&amp;bar>) ==

> WebVTT start tag class state
> Jump to the entry that matches the value of c:
> [...]
> Anything else
> Append c to buffer and jump to the step labeled next.

Should we support character escapes in classes?


The class name above is parsed to `foo&amp;bar`, not `foo&bar`. i.e. 
the Selector to match it would be `::cue(.foo\&amp\;bar)` and not 
`::cue(.foo\&bar)`. I think this is a surprising and unnecessary, I 
don't see any problem with supporting escapes here as well as in the 
annotation (which is already supported).

The syntax disallows "&amp;" in classes (so the above is not valid):


> WebVTT cue span start tag has a tag name and either requires or 
disallows an annotation, and consists of the following components, in 
the order given:

> A U+003C LESS-THAN SIGN character (&lt;).
> The tag name.
> Zero or more occurrences of the following sequence:
> U+002E FULL STOP character (.)
> One or more characters other than U+0009 CHARACTER TABULATION (tab) 
characters, U+000A LINE FEED (LF) characters, U+000D CARRIAGE RETURN 
(CR) characters, U+0020 SPACE characters, U+0026 AMPERSAND characters 
(&amp;), U+003C LESS-THAN SIGN characters (&lt;), U+003E GREATER-THAN 
SIGN characters (>), and U+002E FULL STOP characters (.), representing
 a class that describes the cue span’s significance.

See https://github.com/w3c/webvtt/issues/251
Received on Friday, 21 October 2016 10:12:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:11 UTC