whatwg / url

URL Standard
https://url.spec.whatwg.org/
Other
527 stars 137 forks source link

"valid domain" does not match validation errors in the host parser #797

Open annevk opened 11 months ago

annevk commented 11 months ago

Percent-encoding is a mismatch and tracked by #796.

However, "valid domain" also has a bunch of rules that the host parser does not attempt to log validation errors for. We should either make it log those validation errors or remove this mismatch. (To be specific, "valid domain" uses a different value for "domain to ASCII"'s toStrict parameter and also invokes "domain to Unicode".)

(Then there's #245 about not defining this in an imperative manner, which would have made this harder to spot presumably. Hmm.)