Closed hayatoito closed 9 months ago
Note that the opaque-host parser doesn't return on that line. It just signifies there's a validation error. Not all parsers report validation errors and it would be non-conforming to halt parsing there (unless I suppose the parser was specifically configured to halt on validation errors, but that's not a web-exposed entry point).
Thank for letting me know that!
I understand that invalid-url-unit is not marked as failure. I forgot to look that. My bad.
Let me close this issue.
It seems WPT URL tests have the following url test data:
It appears the WPT URL tests assume either
"foo://!"$%&'()*+,-.;=_`{}~/"
or"sc://%"
is a valid URL.However, a step 3 in opaque-host parser says:
According to this definition,
"foo://!"$%&'()*+,-.;=_`{}~/"
seems invalid because two code points"&'"
, which are not ASCII hex digits, follow U+0025 (%)."sc://%"
is probably invalid too, though I'm unsure.Is "step 3" an intended behavior?
The context: I've found this while supporting non-special URLs in chromium (crbug.com/1416006).