[Webkit-unassigned] [Bug 86719] Submit button doesn't submit the form if the form is wrapped by an anchor tag

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 23 15:44:16 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86719


Pablo Flouret <pablof at motorola.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pablof at motorola.com




--- Comment #5 from Pablo Flouret <pablof at motorola.com>  2012-05-23 15:43:18 PST ---
(In reply to comment #4)
> (From update of attachment 143366 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=143366&action=review
> 
> >> Source/WebCore/html/HTMLInputElement.cpp:1069
> >> +                evt->underlyingEvent()->setDefaultHandled();
> 
> Why don't we do this instead in Node::defaultEventHandler? It appears to me canceling the default action of DOMActivate event should always cancel the default action of click event regardless of which element we're firing the event at.

When the DOMActivate event is actually handled the parent default handlers are not called, so it never reaches Node::defaultEventHandler. Are you suggesting to call the parent class before returning, or not returning and making sure the parent is indeed called (it's not in HTMLInputElement's case, the code makes sure the event wasn't handled before calling the parent), or something else and i misunderstood?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list