W3C home > Mailing lists > Public > public-html@w3.org > January 2011

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

From: <bugzilla@jessica.w3.org>
Date: Tue, 25 Jan 2011 03:35:39 +0000
To: public-html@w3.org
Message-ID: <bug-11856-2495@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:22 UTC