<?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>27939</bug_id>
          
          <creation_ts>2015-01-31 20:25:35 +0000</creation_ts>
          <short_desc>Omissions from the VTTCue interface in the API</short_desc>
          <delta_ts>2015-02-01 02:41: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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/webvtt/</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="James Brink">brinkje</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>philipj</cc>
    
    <cc>self</cc>
    
    <cc>silviapfeiffer1</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>117644</commentid>
    <comment_count>0</comment_count>
    <who name="James Brink">brinkje</who>
    <bug_when>2015-01-31 20:25:35 +0000</bug_when>
    <thetext>It seems to me that attributes for &quot;id&quot;, &quot;startTime&quot;, and &quot;endTime&quot; should be added to the VTTCue interface in section 7.1 of the January 2015 draft.  The last two are parameters in the constructor. The identifier &quot;id&quot; is described elsewhere in the document and the attribute &quot;id&quot; is already allowed by several browsers.  &quot;id&quot; could also be added as an optional parameter in the constructor.

As a convenience to programmers using the VTTCue interface in applications, it would be useful to have way (possibly a function) for adding a WebVTT cue settings list to the cue as a single string using the same format that one would use in the WebVTT file on the start and end times lines.  This string could also possibly be added as an optional parameter for the constructor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117645</commentid>
    <comment_count>1</comment_count>
    <who name="Brendan Long">self</who>
    <bug_when>2015-01-31 21:14:40 +0000</bug_when>
    <thetext>VTTCue extends TextTrackCue:

&gt; interface VTTCue : TextTrackCue

Which is defined here:

https://html.spec.whatwg.org/#texttrackcue

interface TextTrackCue : EventTarget {
  readonly attribute TextTrack? track;

  attribute DOMString id;
  attribute double startTime;
  attribute double endTime;
  attribute boolean pauseOnExit;

  attribute EventHandler onenter;
  attribute EventHandler onexit;
};

So id, startTime and endTime are already part of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117647</commentid>
    <comment_count>2</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2015-02-01 02:41:29 +0000</bug_when>
    <thetext>As Brendan explained in comment#1, VTTCue extends TextTrackCue, so all the attributes that you&apos;re missing are actually there.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>