Re: [whatwg/url] URN validity as a valid URL string (Issue #868)

pzb left a comment (whatwg/url#868)

The full URL is `urn:isbn:9780307476463`.  The scheme is `urn` and the relative-URL string is `isbn:9780307476463`. `isbn` is not a scheme.

Another example URL is `arn:aws:ec2:us-east-1:4575734578134:instance/i-054dsfg34gdsfg38`.   The scheme is `arn` and the relative-URL string is `aws:ec2:us-east-1:4575734578134:instance/i-054dsfg34gdsfg38`.  `aws` is not a scheme in this context.

Both of these URLs use opaque paths, but it appears that URL Writing does not account for opaque paths.  The URL parsing section of the spec does account for opaque paths.

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

Message ID: <whatwg/url/issues/868/2765050651@github.com>

Received on Monday, 31 March 2025 04:12:31 UTC