Re: [whatwg/url] Report all hostname state failures for URLPattern (PR #863)

shannonbooth left a comment (whatwg/url#863)

Since port was mentioned, Is it intended that basic URL parsing `invalid80` with state override set to `Port` will fail? See: https://github.com/web-platform-tests/wpt/blob/58257b113ea697d981808fed11daeaea30ab6bd1/urlpattern/resources/urlpatterntestdata.json#L1234

I guess the pattern spec was written with the intent of failure being returned here, but without URL spec doing it?

Currently spec will return a null port, the WPT test above seems to expect no match to happen by error being thrown during canonicalization.

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

Message ID: <whatwg/url/pull/863/c2736431988@github.com>

Received on Wednesday, 19 March 2025 12:18:53 UTC