W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

Re: onclick after removing element from document during onmouseup

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Mon, 27 Jun 2011 10:54:22 -0700
Message-ID: <BANLkTi=u4Sx9JT98VOQLPGOgD6xnKFwWOw@mail.gmail.com>
To: www-dom@w3.org
Cc: Ojan Vafai <ojan@chromium.org>, Erik Arvidsson <arv@chromium.org>, Glenn Maynard <glenn@zewt.org>
FYI, WebKit changed its behavior in http://trac.webkit.org/changeset/86461.

- Ryosuke

On Tue, May 10, 2011 at 6:39 PM, Ryosuke Niwa <rniwa@webkit.org> wrote:

> I talked with my colleagues and we came to a conclusion that WebKit should
> match IE's and FF's behaviors since we couldn't think of a reason why either
> behavior is better.
>
> I filed a WebKit bug https://bugs.webkit.org/show_bug.cgi?id=60600 to
> track this behavioral change.
>
> As such, please consider spec'ing this behavior explicitly.
>
> - Ryosuke
>
> On Sun, May 8, 2011 at 8:15 PM, Glenn Maynard <glenn@zewt.org> wrote:
>
>> On Sun, May 8, 2011 at 11:12 PM, Ryosuke Niwa <rniwa@webkit.org> wrote:
>>
>>> On Sun, May 8, 2011 at 8:01 PM, Glenn Maynard <glenn@zewt.org> wrote:
>>>>
>>>> In all cases matching Firefox, if the node is removed and immediately
>>>> reinserted at the same position, the behavior is unchanged: onclick doesn't
>>>> happen.  (In other words, they're remembering that the node was removed, not
>>>> checking that it's still in the document later.)
>>>>
>>>
>>> Is this Internet Explorer's behavior?
>>>
>>
>> Yes, IE9 matches FF4.  (I typed that out, but it seems to have escaped
>> from the message.)
>>
>> --
>> Glenn Maynard
>>
>
>
Received on Monday, 27 June 2011 17:55:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT