[Webkit-unassigned] [Bug 40908] unable to set focus to non-displayed elements with "required" attribute on submit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 1 12:23:37 PDT 2010


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





--- Comment #8 from Aryeh Gregor <Simetrical+webkit at gmail.com>  2010-07-01 12:23:36 PST ---
(In reply to comment #7)
> A thought that hit me is that a change in the spec in the form submit algorithm, http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#concept-form-submit, would make this js-tabbed approach work, by changing the order of item 3 and 4.
> 
> Since js was enabled in the first place in this case, js could also deal with validation by making the proper (set of) controls visible, if the cancelable submit event is allowed to run before browser form validation. I believe it also goes along the lines of using js to enhance user experience.
> 
> Any thoughts on this? I'm not involved in browser development, so I lack insights in these matters.

This is probably best discussed on the whatwg or public-html lists.  It's not really relevant to this bug, since WebKit will still have to deal with authors who don't do this.  (FWIW, your proposed change is unnecessary.  You could emulate the effect using novalidate, onsubmit, oninvalid, and checkValidity() pretty easily.)

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