<?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>20511</bug_id>
          
          <creation_ts>2012-12-24 08:26:09 +0000</creation_ts>
          <short_desc>send(…, DOMHighResTimeStamp? timestamp)</short_desc>
          <delta_ts>2013-01-18 15:50:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>AudioWG</product>
          <component>MIDI API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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>TBD</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcos Caceres">w3c</reporter>
          <assigned_to name="Chris Wilson">cwilso</assigned_to>
          <cc>cwilso</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80558</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-12-24 08:26:09 +0000</bug_when>
    <thetext>For send()&apos;s second argument, the spec says that it takes DOMHighResTimeStamp… however, &quot;DOMHighResTimeStamp&quot; isn&apos;t a &quot;real data type&quot; (in that there is no way to actually force a type check on it in some meaningful way AFAICT). Hence, it&apos;s actually just a double that is relative to some start time. This is confirmed in [1]:

typedef double DOMHighResTimeStamp;

To avoid confusion during implementation, I would suggest changing the value data type of the second argument of the send() method to a double.

optional double timestamp;

Also, why is the second argument nullable when it&apos;s already optional?

Note that the current text in the spec is redundant because WebIDL already handles the type checking. Please remove &quot; or if timestamp is passed but is not a valid DOMHighResTimeStamp, throw a TYPE_ERROR exception&quot;.


[1] http://www.w3.org/TR/2012/REC-hr-time-20121217/#domhighrestimestamp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80603</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Wilson">cwilso</who>
    <bug_when>2012-12-26 18:10:16 +0000</bug_when>
    <thetext>Resolved with https://github.com/WebAudio/web-midi-api/commit/23d1a3f64c003ff49077f1a7c6477f109f1d53b9.

Use &quot;double&quot; for all references to DOMHighResTimeStamp parameters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81571</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-01-18 15:50:56 +0000</bug_when>
    <thetext>Batch-closing RESOLVED MIDI issues. Reminder: midi issues now tracked at https://github.com/WebAudio/web-midi-api/issues</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>