Re: [whatwg/url] Add a neato informative table of various URL pieces (#337)

@EnnexMB Thanks for your interest in this.

The WIP are unfortunately on my laptop that has seen some physical damage since the time I created them. I'll try to recover the files tonight.

> The code Timothy used to generate the graphic would be helpful.

For the first (https://user-images.githubusercontent.com/1538624/30042227-a0f3af64-9222-11e7-96a4-39c0cf11d279.png) it was just a manually created SVG. For the second it was a pretty standard HTML table with the spec's default styling.

> It would be helpful to have an additional row at the top of the table with a symbol to distinguish required from optional elements.

NB: what's optional is quite different for different URL schemes. The URN at the end is a good indicator of that. In fact, for non-special URLs only the scheme is required and nothing else – `tim:` is a valid URL! It's important to be mindful of that.

> I guess the third table is best if "origin" means something, which I don't know.

I'd be okay removing that. It's not really a component of the URL but rather a byproduct, so may not fit in that table.

-- 
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/337#issuecomment-415119492

Received on Wednesday, 22 August 2018 17:48:34 UTC