<?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>25665</bug_id>
          
          <creation_ts>2014-05-12 20:46:24 +0000</creation_ts>
          <short_desc>ArrayBufferView should include DataView</short_desc>
          <delta_ts>2014-05-13 18:13:06 +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/#dependencies</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>cam</cc>
    
    <cc>hober0</cc>
    
    <cc>ian</cc>
    
    <cc>kbr</cc>
    
    <cc>mike</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105755</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-12 20:46:24 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html
Multipage: http://www.whatwg.org/C#dependencies
Complete: http://www.whatwg.org/c#dependencies
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
ArrayBufferView should include DataView

Posted from: 63.245.221.34 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:32.0) Gecko/20100101 Firefox/32.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105756</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-05-12 20:47:30 +0000</bug_when>
    <thetext>http://www.khronos.org/registry/typedarray/specs/latest/#8 implements ArrayBufferView, for example.  And in general, any time you want to allow _any_ typed array, you might as well allow DataView.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105773</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-12 22:21:49 +0000</bug_when>
    <thetext>Surprisingly, this really only requires adding DataView to ArrayBufferView, as far as I can tell.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105784</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-05-12 23:36:32 +0000</bug_when>
    <thetext>Yes, exactly.  Or at least that will get things to parity with the existing bits for typed arrays, which don&apos;t exactly make much sense yet either.... :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105793</commentid>
    <comment_count>4</comment_count>
    <who name="Kenneth Russell">kbr</who>
    <bug_when>2014-05-13 00:17:09 +0000</bug_when>
    <thetext>In discussions with the ECMAScript working group, ArrayBufferView as a concept was removed in favor of a type test, ArrayBuffer.isView. http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts#april_27_2014_draft_rev_24 specifies this function, and the WebGL conformance suite at https://github.com/KhronosGroup/WebGL  verifies the presence and functionality of ArrayBuffer.isView.

Is the complaint in Comment 3 that https://www.khronos.org/registry/typedarray/specs/latest/ should remove the ArrayBufferView concept? Agree that that should be done in order to achieve parity with the ES6 drafts -- though Khronos&apos; typed array spec hasn&apos;t been touched since ES6 subsumed the functionality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105794</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-05-13 00:21:37 +0000</bug_when>
    <thetext>Comment 3 is not a complaint, past the fact that as things stand using &quot;Uint8Array&quot; in IDL has no connection to the ES6 Uint8Array; that&apos;s a problem we need to fix in WebIDL.  There&apos;s nothing you can do in the Khronos spec to change that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105884</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-13 18:11:07 +0000</bug_when>
    <thetext>Yeah, the typedef in HTML is a polite fiction until WebIDL is updated to define a way to reference the actual underlying JavaScript concepts. (The Khronos spec is just a historical artefact now.)

Ok, I&apos;ve added DataView to the typedef.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105885</commentid>
    <comment_count>7</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-05-13 18:13:06 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8628.
Check-in comment: Allow DataView to be used where ArrayBufferView is mentioned
http://html5.org/tools/web-apps-tracker?from=8627&amp;to=8628</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>