Closed Bug 898003 Opened 11 years ago Closed 3 years ago

Puny-encoding username part of email addresses in HTMLInputElement::IsValidEmailAddress?

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED INACTIVE

People

(Reporter: poiru, Unassigned)

References

Details

While working on bug 884332, I noticed that we puny-encode not only the domain part, but also the local part of e-mail addresses in HTMLInputElement::IsValidEmailAddress. I discussed this with Mounir and we decided that a bug should be opened to verify that this is indeed the correct behaviour. Relevant part of the discussion below.

18:43    poiru: I still have a question: is puny-encoding the username valid? I took a
                look at Chrome[0] and they don't seem to puny-encode the username.
18:43    poiru: [0]: http://src.chromium.org/viewvc/blink/trunk/Source/core/html/EmailInputType.cpp?revision=154184#l50
18:51   mounir: it is possible that we do it wrong indeed :-/
18:51   mounir: could you open a bug for that?
Severity: normal → minor
Version: unspecified → Trunk
See Also: → 901347
bug 842523 and bug 618876 discussed intentionally punycoding the userpart, but there's no explanation of why; the eMail RFCs indicate the local-part should only be interpreted by the final host, and I didn't see anything by WhatWG regarding anything to the contrary.
The removed code in PunyEncodeEmailAddress from the diff attached to bug 791069 would fix this (lines 6456-6473  at the moment, anything that touches the local "username" variable).
This appears to have been fixed recently.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5

Closing this as inactive as we'll follow-up here in a new bug once a related specification issue is sorted.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.