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 23297 - [WebVTT] clarify region percentage parsing
Summary: [WebVTT] clarify region percentage parsing
Alias: None
Product: TextTracks CG
Classification: Unclassified
Component: WebVTT (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Silvia Pfeiffer
QA Contact: This bug has no owner yet - up for the taking
Whiteboard: v1
: 24069 (view as bug list)
Depends on:
Reported: 2013-09-19 20:22 UTC by Ralph Giles
Modified: 2014-01-26 07:30 UTC (History)
5 users (show)

See Also:


Description Ralph Giles 2013-09-19 20:22:49 UTC
"One or more ASCII digits."

The second set of ascii digits should be marked as present only if the optional decimal point was present. Otherwise this could be read as requiring two or more ascii digits, i.e. width=6% would be invalid.

Likewise with the other region attributes. It makes sense to abstract this into a 'webvtt percentage value' or something similar so it can be described once an referenced from all three attributes.
Comment 1 Ralph Giles 2013-09-19 20:27:10 UTC
Ah, I see you already do this in the parsing section. I was worried about the description in section 4.4.1. Maybe these can just be 'an optional decimal'? I was mislead by the level of detail into thinking this was normative. :)
Comment 2 Simon Pieters 2013-09-20 08:34:35 UTC
It is normative, but it doesn't apply to implementors. It applies to the author or WebVTT generator, as well as validators.

This this is a bug. The spec says that 6% is invalid (although the parser might accept it). It should say:

4. Optionally:
   1. A U+002E DOT character (.).
   2. One or more ASCII digits.
Comment 3 Silvia Pfeiffer 2013-09-20 10:22:46 UTC
Agreed, it's a bug. Thanks for noticing.
Comment 4 Simon Pieters 2013-12-12 12:39:38 UTC
*** Bug 24069 has been marked as a duplicate of this bug. ***