<?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>17558</bug_id>
          
          <creation_ts>2012-06-20 11:34:50 +0000</creation_ts>
          <short_desc>WebVTT: syntax should disallow &quot;--&gt;&quot; in cue data</short_desc>
          <delta_ts>2012-10-11 11:11:54 +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></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Pieters">zcorpan</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>cyril.concolato</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-texttracks</cc>
    
    <cc>silviapfeiffer1</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69287</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-06-20 11:34:50 +0000</bug_when>
    <thetext>The string --&gt; needs to be banned from the allowed syntax in cue data.

Examples:

&lt;c.--&gt;foo

&lt;v --&gt;foo

foo--&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69289</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-06-20 12:58:21 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; The string --&gt; needs to be banned from the allowed syntax in cue data.

Why? It might have some unexpected effects, but it&apos;s not invalid, IIUC.

&gt; Examples:
&gt; 
&gt; &lt;c.--&gt;foo

This parses to &lt;span class=&quot;--&quot;&gt;foo


&gt; &lt;v --&gt;foo

This parses to &lt;span title=&quot;--&quot;&gt;foo

 
&gt; foo--&gt;

This parses to foo--&gt; IIUC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69290</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-06-20 13:05:09 +0000</bug_when>
    <thetext>See step 43 in http://dev.w3.org/html5/webvtt/#webvtt-parser-algorithm (basically --&gt; in cue data starts a new cue)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69291</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2012-06-20 13:06:54 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; See step 43 in http://dev.w3.org/html5/webvtt/#webvtt-parser-algorithm
&gt; (basically --&gt; in cue data starts a new cue)

Ah yeah, that&apos;s right, I remember. It also helps to &quot;hide&quot; comments.

But that doesn&apos;t mean it needs banning from cue data, does it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69292</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-06-20 13:14:36 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Ah yeah, that&apos;s right, I remember.

You sure what you remember isn&apos;t what the spec said before it was changed to make &quot;--&gt;&quot; aggressively start a new cue?

&gt; It also helps to &quot;hide&quot; comments.

No.

&gt; But that doesn&apos;t mean it needs banning from cue data, does it?

It does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71912</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-08-07 22:47:27 +0000</bug_when>
    <thetext>Oops, yeah, not sure why I forgot to do this when I changed the parser.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75897</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-10-10 23:14:49 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7451.
Check-in comment: Make --&gt; in cue payloads non-conforming since it won&apos;t be parsed right anyway.
http://html5.org/tools/web-apps-tracker?from=7450&amp;to=7451</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75948</commentid>
    <comment_count>7</comment_count>
    <who name="Cyril Concolato">cyril.concolato</who>
    <bug_when>2012-10-11 08:16:25 +0000</bug_when>
    <thetext>Hi,

I have a problem with this fix. What if I carry XML data (including XML comments) in the payload of a VTT metadata cues? The --&gt; (end of comment) will be present and since the cue is a metadata cue, it won&apos;t be escaped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75953</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2012-10-11 09:45:29 +0000</bug_when>
    <thetext>Cyril, please file a new bug. This was just making the allowed syntax match what the parser already does.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75964</commentid>
    <comment_count>9</comment_count>
    <who name="Cyril Concolato">cyril.concolato</who>
    <bug_when>2012-10-11 11:11:54 +0000</bug_when>
    <thetext>Done: https://www.w3.org/Bugs/Public/show_bug.cgi?id=19465</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>