<?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>26442</bug_id>
          
          <creation_ts>2014-07-28 13:35:44 +0000</creation_ts>
          <short_desc>Clarify if TextTrackCueList should be able to be converted to Array</short_desc>
          <delta_ts>2014-07-28 15:13:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="Rick Eyre">rick.eyre</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rick.eyre</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>109365</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Eyre">rick.eyre</who>
    <bug_when>2014-07-28 13:35:44 +0000</bug_when>
    <thetext>Should the code, `Array.prototype.slice.call(TTObj, 0)`, be able to convert either TextTrackLists or TextTrackCueLists to arrays? Currently this works on Chrome, but not on Firefox. If so, can there be some clarification added to the spec on whether or not this should work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109366</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-07-28 13:47:23 +0000</bug_when>
    <thetext>&gt; Currently this works on Chrome, but not on Firefox. 

It seems to work just fine in Firefox, as expected.  Why do you think it doesn&apos;t work?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109371</commentid>
    <comment_count>2</comment_count>
    <who name="Rick Eyre">rick.eyre</who>
    <bug_when>2014-07-28 15:01:32 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #1)

&gt; It seems to work just fine in Firefox, as expected.  Why do you think it
&gt; doesn&apos;t work?

Yeah, you&apos;re right Boris... It seems like I&apos;ve been testing this wrong. I didn&apos;t understand the issue clearly.

Should we still add clarification to the spec around this? I&apos;m not sure what objects count as `able to be converted to an array`, that&apos;s kind of vague to me, unless I&apos;m missing something. It&apos;s also unclear to me that TextTrack(Cue)Lists should be able to do this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109373</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-07-28 15:08:24 +0000</bug_when>
    <thetext>&gt; I&apos;m not sure what objects count as `able to be converted to an array`

See the spec for Array.prototype.slice at http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.slice

Basically, as long as it has a &quot;length&quot; property and then has numbered properties from 0 to length-1, slice() will produce an array from it.

That&apos;s obviously true for these objects, given their .length and indexed getter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109376</commentid>
    <comment_count>4</comment_count>
    <who name="Rick Eyre">rick.eyre</who>
    <bug_when>2014-07-28 15:13:27 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #3)

&gt; See the spec for Array.prototype.slice at
&gt; http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.
&gt; slice
&gt; 
&gt; Basically, as long as it has a &quot;length&quot; property and then has numbered
&gt; properties from 0 to length-1, slice() will produce an array from it.
&gt; 
&gt; That&apos;s obviously true for these objects, given their .length and indexed
&gt; getter.

Okay, that makes sense. That&apos;s why it just works. Thanks!

Closing this as invalid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>