W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

[whatwg] HTMLForms: Implicit Submission with {display:none} button

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 25 Sep 2011 22:39:50 -0400
Message-ID: <4E7FE5F6.706@mit.edu>
On 9/25/11 5:35 PM, Ryosuke Niwa wrote:
> So Gecko fires a click event on a button even if
> it had display: none or visibiliy: hidden?

In this situation, yes.  Just like as if you called dispatchEvent on it.

Of course you can't trigger click events on such a button using an 
actual mouse, since it can't be hit-targeted.

Received on Sunday, 25 September 2011 19:39:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC