https://bugzilla.wikimedia.org/show_bug.cgi?id=40909
Web browser: ---
Bug #: 40909
Summary: browser's invalid email tooltip appears in addition to
MediaWiki
Product: MediaWiki
Version: 1.21-git
Platform: All
URL: https://en.wikipedia.org/wiki/Special:ChangeEmail
OS/Version: All
Status: NEW
Keywords: javascript
Severity: minor
Priority: Unprioritized
Component: Special pages
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
Created attachment 11173
--> https://bugzilla.wikimedia.org/attachment.cgi?id=11173
browser tooltip and MediaWiki div both warning invalid email
With $wgHtml5 now true on en-wiki, the form field attribute type=email in
MediaWiki forms flows to the browser. This makes recent browsers validate
e-mail addresses on submit. Which is fine, except when the form does its own
client-side validation, in which case two validation messages appear
simultaneously. See screenshot.
To reproduce, visit Special:ChangeEmail, enter a bad e-mail, tab out of the
field, and click [Submit] or press the [Enter] key.
This may also happen with other forms using HTMl5 input types that trigger
browser validation that do their own client-side validation.
A workaround is to disable the browser's validation with attributes novalidate
and formnovalidate; it would be better to somehow cooperate with the browser's
implementation.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l