[Webkit-unassigned] [Bug 64733] Forms with display:none on the submit button do not get submitted on enter

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 6 13:02:38 PDT 2011


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





--- Comment #20 from Kaustubh Atrawalkar <kaustubh at motorola.com>  2011-09-06 13:02:38 PST ---
> > The reason being the issue is not reproducible for only one input box element inside form. I m trying to figure out why so? Will update soon.
> 
> THAT is surely odd.  Did you figure out why?

Ryosuke, there is a change in which it checks for the 
} else if (formElement->canTriggerImplicitSubmission()) 
    ++submissionTriggerCount; 
} 
if (fromImplicitSubmissionTrigger && submissionTriggerCount == 1) 
 prepareSubmit(event); 

This is why when there is only one input box element, submissionTriggerCount become 1 and it triggers prepareSubmit(event) which cause the use case to work with only one input box. This is designed keeping "Searchbox" in mind, where u can have submit action on enter key press. Also I will take care of indentation as well just to keep code as simple as possible. 

>From the specs mentioned in "http://www.w3.org/TR/html5/association-of-controls-and-forms.html#implicit-submission" I think the form submission should be possible even if there is no active submit button. The spec clearly mentions if there is a submit button in the form's tree order (may it be displayed or not is upto developer's choice) the default action on enter should be submitting the form. 
So, IMHO, i think this bug is valid and should be fixed.

-- 
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