<?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>14294</bug_id>
          
          <creation_ts>2011-09-26 13:16:12 +0000</creation_ts>
          <short_desc>&lt;track&gt; Should say that the parser can return with an error state or &quot;not processed successfully&quot; state, so that &apos;error&apos; fires instead of &apos;load&apos; on &lt;track&gt; if the webvtt signature is wrong</short_desc>
          <delta_ts>2012-07-18 18:48:07 +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/#parsing-0</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          <dependson>13995</dependson>
    
    <dependson>14241</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57352</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-26 13:16:12 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/complete/the-iframe-element.html
Multipage: http://www.whatwg.org/C#parsing-0
Complete: http://www.whatwg.org/c#parsing-0

Comment:
&lt;track&gt; Should say that the parser can return with an error state or &quot;not
processed successfully&quot; state, so that &apos;error&apos; fires instead of &apos;load&apos; on
&lt;track&gt; if the webvtt signature is wrong

Posted from: 2001:4c28:a030:30:223:32ff:fec2:96fa by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.21 Safari/535.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58677</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-21 22:52:09 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: If the signature is wrong, the file won&apos;t be parsed as WebVTT, as far as I can tell. Can you elaborate?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58706</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-10-22 12:36:37 +0000</bug_when>
    <thetext>It&apos;s just a bit confusing:

[[
f the file was not successfully processed, e.g. the format in question is an XML format and the file contained a well-formedness error that the XML specification requires be detected and reported to the application, then fire a simple event named error at the track element.

Note: The WebVTT format does not report errors in this fashion.
]]

But if the file is not WebVTT (because the signature is wrong), we want an error event. So consider TTML, which is XML. If it contains a well-formedness error, it is by definition not XML, and therefore also not TTML. Does error fire?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58828</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 02:35:21 +0000</bug_when>
    <thetext>No, whether something is TTML or not is determined by the MIME type. Whether something is WebVTT or not is determined by the sniffing algorithm. At least, that&apos;s the intent. Until Adam updates his draft it&apos;s not really that way yet.

Does that make sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58890</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-10-25 07:22:30 +0000</bug_when>
    <thetext>I think the part I quoted above should say &quot;if the file is of an unsupported format or cannot be successfully processed&quot; or some such, to make sense for a UA only supporting WebVTT. Right now it reads as if a UA only supporting WebVTT would never fire &apos;error&apos; since it says &quot;The WebVTT format does not report errors in this fashion.&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58964</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 23:54:13 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: Ok. I tweaked the text to try to avoid these problems. Let me know if it&apos;s still problematic. (Note that bug 13995 means that this isn&apos;t quite perfect yet; that&apos;s a known issue.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58965</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 23:56:34 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6763.
Check-in comment: Clarify that onerror fires if a WebVTT file has the wrong signature.
http://html5.org/tools/web-apps-tracker?from=6762&amp;to=6763</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>