W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2012

[Bug 15489] IDN email addresses should be converted to Punycode before validating them

From: <bugzilla@jessica.w3.org>
Date: Fri, 03 Feb 2012 09:30:48 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RtFTk-0001PU-Kp@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=15489

--- Comment #11 from Mathias Bynens <mathias@qiwi.be> 2012-02-03 09:30:47 UTC ---
So what should happen when markup like this is used:

    <input type=email value=foo@mañana.com>

Should this value be considered invalid until the user focuses the control
(i.e., until it becomes “user input”)? That seems weird.

> [08:08] <Hixie> what's the use case? the value in the database would be punycoded
> [08:09] <Hixie> since that's all the client will ever send to the server

Let’s say Page A has the following markup. After submission the input is
inserted into a database.

    <input type=text name=email>
    <!-- or even a typo, which makes it fall back to type=text… -->
    <input type=e-mail name=email>

Page B uses type=email, and reads the value from the database:

    <input type=email value=foo@mañana.com>

Alternatively, the un-Punycoded email address may already be stored in the
database for a variety of reasons.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 3 February 2012 09:30:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 3 February 2012 09:30:51 GMT