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

[Bug 12949] click() shouldn't have special powers over dispatching click event manually

From: <bugzilla@jessica.w3.org>
Date: Wed, 15 Jun 2011 13:49:05 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1QWqSv-0005Bg-GL@jessica.w3.org>

--- Comment #6 from Olli Pettay <Olli.Pettay@gmail.com> 2011-06-15 13:49:04 UTC ---
So the way activation behavior is defined in HTML is just wrong - 
well at least it doesn't reflect the reality.
Or I'm reading the spec wrong.
Anyway, click() doesn't work differently to dispatching click manually.

There can be differences in default handling, but that is a separate thing.

In Gecko, and I think in Webkit too, and based on the testcase also
other browsers there is
1. event target chain creation
2. pre-handle-event phase
3. actual dom event dispatch
4. post-handle-event phase, including default handling

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 15 June 2011 13:49:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:52 UTC