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 12443 - DataTransfer's setData() and clearData() should return booleans
Summary: DataTransfer's setData() and clearData() should return booleans
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2011-04-07 13:00 UTC by Hallvord R. M. Steen
Modified: 2011-08-04 05:35 UTC (History)
3 users (show)

See Also:


Description Hallvord R. M. Steen 2011-04-07 13:00:49 UTC
These methods from are currently spec'ed as void, should return a boolean value indicating whether the operation passed or failed. 

This is how Microsoft has spec'ed these methods:
and while it's not a feature most scripts will make use of, it could be useful if for example a web application expects to run on a platform where the memory available for clipboard operations is limited, or where another application may have locked the clipboard when the setData()/clearData() method is called.
Comment 1 Hallvord R. M. Steen 2011-05-18 06:43:49 UTC
With the DnD-derived model where these methods operate on a DataTransfer object and not directly on the clipboard, we can not really give the script feedback on whether they succeeded or not, because we won't know that until the script has completed. Invalid.
Comment 2 Michael[tm] Smith 2011-08-04 05:35:01 UTC
mass-move component to LC1