<?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>14628</bug_id>
          
          <creation_ts>2011-10-31 13:14:44 +0000</creation_ts>
          <short_desc>&lt;track&gt; In step 6-7, only consume the character if it is a &apos;:&apos;</short_desc>
          <delta_ts>2012-07-18 18:41:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#parse-the-webvtt-settings</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>fs</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59284</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-31 13:14:44 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html
Multipage: http://www.whatwg.org/C#parse-the-webvtt-settings
Complete: http://www.whatwg.org/c#parse-the-webvtt-settings

Comment:
In step 6-7, only consume the character if it is a &apos;:&apos;

Posted from: 2001:4c28:a030:30:72f3:95ff:fe00:4501
User agent: Opera/9.80 (X11; Linux x86_64; U; sv) Presto/2.9.168 Version/11.51</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59285</commentid>
    <comment_count>1</comment_count>
    <who name="Fredrik S">fs</who>
    <bug_when>2011-10-31 13:23:11 +0000</bug_when>
    <thetext>It seems it would be better from an error recovery PoV to not consume a character in step 7 unless it was a colon.

Consider the input &quot;X A:middle&quot;.

Step 4 reads and consumes the &quot;X&quot;.
Step 6 sets &apos;setting&apos; to &quot;&quot; (since &quot; &quot; != &quot;:&quot;).
Step 7 consumes &quot; &quot;.
Step 9 consumes the rest of the string (via &quot;Otherwise...&quot;).

If steps 6-7 did not consume anything but a &apos;:&apos;, it would instead be:

Step 4 reads and consumes the &quot;X&quot;.
Step 6 sets &apos;setting&apos; to &quot;&quot; (since &quot; &quot; != &quot;:&quot;).
Step 9 consumes nothing
Step 4 reads and consumes the &quot;A&quot;
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59330</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-10-31 22:16:15 +0000</bug_when>
    <thetext>I think maybe we should allow some whitespace here, so that you can write e.g.

   A : middle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59345</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-11-01 02:10:53 +0000</bug_when>
    <thetext>Oops, yeah, the handling here is poor. I&apos;ll fix that.

I disagree with comment 2; the idea is that each setting is a separate space-separated token.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59408</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-11-01 16:17:50 +0000</bug_when>
    <thetext>Fixed in r6806; sorry, I typoed the bug number in the checkin comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>