Bug 40761

Summary: International domain name (IDN) emails silently fail input type="email" validation
Product: WebKit Reporter: Oli Studholme <webkit.org>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal CC: ap, ayg, tkent, webkit.org, yosin
Priority: P2 Keywords: WebExposed
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
URL: http://jsfiddle.net/xEgan/
Attachments:
Description Flags
Proof of concept none

Description Oli Studholme 2010-06-16 22:57:14 PDT
It seems that type="email" content is not correctly converted to punycode, so a user using a doublebyte name is unable to submit the form. Worse, there is no UI for this error, so the user has no idea why the form hasn’t submitted. It appears as if the submit button isn’t connected to anything.
Ref: http://code.google.com/p/chromium/issues/detail?id=45804 for a related Chromium bug on the lack of UI for validation errors
Comment 1 Oli Studholme 2010-06-16 22:59:05 PDT
note a doublebyte domain name is correctly converted to punycode for type="url"
Comment 2 Aryeh Gregor 2010-06-17 12:05:51 PDT
Bug 40747 is about the UI, so this may as well be repurposed to be only about not accepting IDNs.  E-mail inputs should certainly accept IDNs and convert to punycode for submission -- it only makes sense.  The spec mentions this as an example but doesn't require it (since it's a UI issue):

"User agents may transform the value for display and editing (e.g. converting punycode in the value to IDN in the display and vice versa)." <http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state>
Comment 3 yosin 2012-08-06 03:03:38 PDT
Change URL to test case:
http://jsfiddle.net/xEgan/

Here is original URI in URL field:
http://pukupi.com/post/2070/
Comment 4 yosin 2012-10-03 19:02:35 PDT
Created attachment 167019 [details]
Proof of concept