W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2015

Re: [whatwg] Regarding spec clarification on dispatching click event on disabled form controls

From: Anne van Kesteren <annevk@annevk.nl>
Date: Fri, 8 May 2015 12:20:32 +0200
Message-ID: <CADnb78gs2pgz6-+mce4aY6zZP8=bCMaWAZAuggsSod07iRxQzg@mail.gmail.com>
To: Ramya Vadlamudi <ramya.v@samsung.com>
Cc: WHATWG <whatwg@whatwg.org>
On Fri, May 8, 2015 at 12:07 PM, Ramya Vadlamudi <ramya.v@samsung.com> wrote:
> Is there any specific reason to prevent click events that are queued on the
> user interaction task source only?

Presumably that's the legacy behavior.

> What should be the behavior of other events like button.dispatchEvent(new
> Event('click'))?
> From the results we can see IE and Firefox are not dispatching any click
> event generated to disabled elements.
> Please let me know the correct behavior.

I would say that both IE and Firefox are wrong. dispatchEvent() should
always work. There's nothing in the dispatchEvent() specification that
says it shouldn't for this case.

Received on Friday, 8 May 2015 10:20:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:31 UTC