Re: [whatwg/url] Parser generates invalid URLs (#379)

annevk left a comment (whatwg/url#379)

Could you file new issues for those suggestions?

----

> But you seem to argue that it is undesirable there too.

It's a bit more subtle than that. I think it's generally reasonable for parsers to be able to produce outputs that are non-conforming. With conformance used as an indication that such outputs might result in differing interpretations across a wide and varied ecosystem, or might indicate some flexibility for the future evolution of the format. It's far less reasonable however when data structures when serialized cannot be parsed into the same data structure again. Or when APIs can be used to put data structures in such a state. HTML suffers from all of that.

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

Message ID: <whatwg/url/issues/379/2660784758@github.com>

Received on Saturday, 15 February 2025 07:13:06 UTC