[Bug 11856] New: what happens when nothing happens in the getData() algorithm?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11856

           Summary: what happens when nothing happens in the getData()
                    algorithm?
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: minor
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: hallvord@opera.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Regarding:
http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dom-datatransfer-getdata
:

> The getData(format, data) method must run the following steps:
> If the DataTransfer object is no longer associated with a drag data store, 
> abort these steps. Nothing happens.

What does "Nothing happens" actually mean? I believe it should return
undefined, which might be covered by "nothing happens" but it would be clearer
to just say "return undefined".

Also, in step 7:
> If there is no item in the drag data store item list whose kind is
> Plain Unicode string and whose type string is equal to format, return
> the empty string and abort these steps.

This doesn't match WebKit per my testing, it should return undefined (tested
with Chrome/Win).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Tuesday, 25 January 2011 03:35:42 UTC