This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25356 - Update DataCue constructor to take an any arugment that matches DataCue.value and an optional type argument
Summary: Update DataCue constructor to take an any arugment that matches DataCue.value...
Status: RESOLVED DUPLICATE of bug 25353
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on: 25353 25355
Blocks: 25352
  Show dependency treegraph
 
Reported: 2014-04-15 20:45 UTC by Edward O'Connor
Modified: 2014-05-19 08:37 UTC (History)
8 users (show)

See Also:


Attachments

Description Edward O'Connor 2014-04-15 20:45:39 UTC
Assuming bug 25353 is accepted, DataCue's constructor needs to be updated to take this into account. If bug 25355 is accepted, DataCue's constructor also needs to be able to populate .type.

Something like this should work:

new DataCue( [ startTime, endTime, value, type? ] )

If an ArrayBuffer is passed in for value, it is used as the value of .data on the new DataCue. If value is some other type, it gets exposed on .value.
Comment 1 Silvia Pfeiffer 2014-05-19 08:37:37 UTC
Closing this since we're discussing metadata cues in bug 25353

*** This bug has been marked as a duplicate of bug 25353 ***