[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 02:34:41 PDT 2010


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





--- Comment #7 from bugs.jafm at gmail.com  2010-07-01 02:34:40 PST ---
(In reply to comment #4)
> (In reply to comment #3)
> > Is there any evidence of authors doing this?
> 
> MediaWiki formerly did this by mistake (until we turned off form validation due to WebKit's bug 40747).  If you're logged in and have JS enabled, the page http://en.wikipedia.org/wiki/Special:Preferences uses JS to break the page into tabs.  If you filled out something incorrectly, switched to another tab, and tried to submit, the invalid input wouldn't be focusable.

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.

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