Open Bug 1890466 Opened 1 year ago Updated 1 year ago

EmailInputType::PunycodeEncodeEmailAddress does not check for hyphen

Categories

(Core :: DOM: Forms, defect)

defect

Tracking

()

People

(Reporter: hsivonen, Unassigned)

References

Details

(Keywords: good-first-bug)

Per https://html.spec.whatwg.org/#valid-e-mail-address , EmailInputType::PunycodeEncodeEmailAddress should check that labels don't start or end with a hyphen, but we don't currently check for that. (We should probably check what other browser do before checking it. Trailing hyphens do exist in labels that are not overseen by ICANN. See bug 1184059.)

You need to log in before you can comment on or make changes to this bug.