[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
Wed Oct 27 20:38:44 PDT 2010


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


alexander farkas <info at corrupt-system.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |info at corrupt-system.de




--- Comment #10 from alexander farkas <info at corrupt-system.de>  2010-10-27 20:38:43 PST ---
Can you explain, what you want to do about this? I don't really think, that this is a browser problem. It is a page/developer problem. There are a lot of custom stylable checkbox/radiobutton/select element scripts out there. The common technique to do this, is to hide the native input-element, create a better stylable element and delegate user/developer inputs from the custom widget to the native input-widget and vice versa. An HTML5 aware script would delegate the invalid event from the native widget to the custom widget. If you would show an error to the user, it would break these scripts or would make custom styleable datepicker-widgets, range-widgets etc. on top of html5-inputs  impossible/more difficult.

The only thing you could/should do, is to print a console log (for the developer), if a) an invalid event occurs, b) the invalid-event is unhandeled (no preventDefault/return false) and c) the element is not focusable. 

Everything more would break the web. Don't do too much. If a developer has used his own attributes (i.e. required="no/false", it is his fault). 

Due to the fact, that FF4 also adds the required attribute, these bugs will simply fixed by the page authors. Simply change the status to invalid/wontfix. (can you explain why bug 44436 isn't invalid)

BTW.: Aptanas code assists suggests true/false as values for the disabled attribute. It would be ridiculous, if I would fill a bug here to make disabled="false" work. Although, there are more developers using aptana than sites using hidden elements with required-attribut / required="please don't validate".

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