[Bug 14628] <track> In step 6-7, only consume the character if it is a ':'

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14628

Fredrik Söderquist <fs@opera.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fs@opera.com
            Summary|In step 6-7, only consume   |<track> In step 6-7, only
                   |the character if it is a    |consume the character if it
                   |':'                         |is a ':'

--- Comment #1 from Fredrik Söderquist <fs@opera.com> 2011-10-31 13:23:11 UTC ---
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 "X A:middle".

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

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

Step 4 reads and consumes the "X".
Step 6 sets 'setting' to "" (since " " != ":").
Step 9 consumes nothing
Step 4 reads and consumes the "A"
...

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 31 October 2011 13:23:14 UTC