Closed Bug 927125 Opened 12 years ago Closed 12 years ago

Fix test_input_typing_sanitization.html to not rely on hitting Enter in <input type=number> submitting the form

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jwatt, Unassigned)

References

Details

Attachments

(1 file)

The HTML5 spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission says: For the purpose of the previous paragraph, an element is a field that blocks implicit submission of a form element if it is an input element whose form owner is that form element and whose type attribute is in one of the following states: Text, Search, URL, Telephone, E-mail, Password, Date and Time, Date, Month, Week, Time, Local Date and Time, Number So if <input type=number> is in the form, hitting the Enter key in that input element (or any other) should not submit the form. content/html/content/test/forms/test_input_typing_sanitization.html currently incorrectly depends on hitting Enter causing a submission though. As a result it fails (times out because there is no submission) with the patch for bug 635240 which fixes us to comply with the spec text quoted above.
Attached patch patchSplinter Review
Attachment #817464 - Flags: review?(bugs)
Comment on attachment 817464 [details] [diff] [review] patch Actually, on a closer reading of the text with Olli I think I agree that this should work in the case that there is only one form control in the form and that form control is <input type=number>.
Attachment #817464 - Flags: review?(bugs)
Assignee: jwatt → nobody
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: