Re: [whatwg/url] Meta: UTS46 feedback (Issue #744)

+1.

> Tests that use trailing ASCII digit labels (or such a label followed by a dot) are not useful for browsers as that will trigger the IPv4 parser.

I think it's still valuable to test what a UTS46 implementation does for these kinds of inputs, even if the URL host parser will later interpret them as invalid IPv4 addresses rather than domain names. But as you say, it is non-trivial to detect these inputs because of limitations in the APIs exposed by browsers, so perhaps these tests should include a flag.

An idea - bearing in mind that URLs are part of a living standard (and things like the ends-in-a-number predicate have changed fairly recently), perhaps the tests should include a set of "URLX" flags for use by implementors of this standard? To mark inputs which are technically allowed by UTS46 but may not be usable in URLs.

> The test for ToASCII("$") is marked P1 and V6, not U1. This also affects numerous tests with <, >, and =.

Status U1 is not used at all by the test files :(

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/744#issuecomment-1400574123
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/744/1400574123@github.com>

Received on Monday, 23 January 2023 15:51:33 UTC