<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28261</bug_id>
          
          <creation_ts>2015-03-22 00:12:40 +0000</creation_ts>
          <short_desc>[webvtt] WebVTT percentage digits? [I18N-ISSUE-427]</short_desc>
          <delta_ts>2015-11-23 18:40:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>TextTracks CG</product>
          <component>WebVTT</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>widereview</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Silvia Pfeiffer">silviapfeiffer1</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>addison</cc>
    
    <cc>philipj</cc>
    
    <cc>silviapfeiffer1</cc>
    
    <cc>singer</cc>
    
    <cc>www-international</cc>
          
          <qa_contact name="Web Media Text Tracks CG">public-texttracks</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118773</commentid>
    <comment_count>0</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-03-22 00:12:40 +0000</bug_when>
    <thetext>Feedback by Addison Phillips from W3C I18N group:
http://lists.w3.org/Archives/Public/public-tt/2015Mar/0060.html

I18N comment: https://www.w3.org/International/track/issues/427

A WebVTT percentage is defined (in part) as:

--
A WebVTT percentage consists of the following components:

One or more ASCII digits.
--

There is no upper length limit given for the integer portion of the percentage. Is this intentional?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118841</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-03-23 03:17:08 +0000</bug_when>
    <thetext>I think the syntax should say that if interpreted as a real number, a WebVTT percentage must in the range 0..100, matching the parsing.

This still makes 0000050% valid, which seems OK If we want it to not be valid we&apos;d have to say that the first digit cannot be a zero.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118887</commentid>
    <comment_count>2</comment_count>
    <who name="Addison Phillips">addison</who>
    <bug_when>2015-03-24 01:11:22 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #1)
&gt; I think the syntax should say that if interpreted as a real number, a WebVTT
&gt; percentage must in the range 0..100, matching the parsing.
&gt; 
&gt; This still makes 0000050% valid, which seems OK If we want it to not be
&gt; valid we&apos;d have to say that the first digit cannot be a zero.

A percentage can never be larger than 100%? Some CSS percentages make sense as larger numbers... just not as unbounded values. Anyway, this comment is just a grammatical nit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118891</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-03-24 07:22:45 +0000</bug_when>
    <thetext>Percentages can of course be any real number, but in WebVTT any attempt to set a percentage outside the range [0,100] is ignored, both in the parser and on the VTTCue interface.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118921</commentid>
    <comment_count>4</comment_count>
    <who name="David Singer">singer</who>
    <bug_when>2015-03-24 21:56:38 +0000</bug_when>
    <thetext>yes, but am I required to be able to parse

85.3629386749238923498798234923488021037096308373833999473908334903333222647850993774663884%

for example?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118925</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2015-03-25 04:34:59 +0000</bug_when>
    <thetext>Yes, the WebVTT parser will collect that whole string, however long, and interpreted as a real number. The result is only exposed as a double in the VTTCue interface, so there&apos;s no requirement to store it as an arbitrary precision number, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121496</commentid>
    <comment_count>6</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-06-27 12:32:34 +0000</bug_when>
    <thetext>Prepared https://github.com/w3c/webvtt/pull/199</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122258</commentid>
    <comment_count>7</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-07-22 13:19:26 +0000</bug_when>
    <thetext>Patch landed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>124277</commentid>
    <comment_count>8</comment_count>
    <who name="Addison Phillips">addison</who>
    <bug_when>2015-11-23 18:40:29 +0000</bug_when>
    <thetext>satisfied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>