Re: [whatwg/url] [Proposal] Specify a fragment-directive meant for UA instructions (#445)

> I see, but at that point you are still changing how a URL is parsed, which I thought folks successfully argued against doing.

The main concern was using the `#` code point inside a fragment since that could trip up existing parsers.

> It definitely seems preferable to keep fragment the way it is today

Just want to make sure I understand you: by "preferable" do you mean as opposed to splitting fragment and directive during parsing  the URL spec? Or as opposed to doing that in the HTML spec as well?

At some point in the process we need to remove the directive from the fragment. In our current implementation we actually do this during Document loading. We create a new URL based on the original URL but with the directive stripped out and set that on the Document - come to think of it, maybe that's a better way to specify it. WDYT?

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

Received on Thursday, 10 October 2019 14:42:04 UTC