webspecs / url

The URL specification
https://specs.webplatform.org/url/webspecs/develop/
Other
21 stars 9 forks source link

URLs section review #1

Closed domenic closed 9 years ago

domenic commented 9 years ago
rubys commented 9 years ago

It could be made clearer with the addition of non-normative examples.

Not clear to me what "it" is. :-)

"Scheme data" confuses me, and the note below it does not help.

Ah, this is a concrete example of an "it". And, yes, an example would help.

Consider the following URL, as defined in the (expired!) draft-hoehrmann-javascript-scheme-03:

javascript:doSomething()

javascript is the scheme. doSomething() isn't a username, password, host, port, path, query, or fragment. scheme data is therefore defined to hold this information.

As you say, an example would help here.

Relative schemes make sense, but it might be good to add a note explaining why "foo" is not a relative scheme and what implication that has for URLs in the form "foo:bar".

In the definition of non-relative-url, there is the following note:

The resolution of bug 27233 may add support for relative URLs for unknown schemes.

If you follow that link (and then into the links provided with the first comment), you will see that the implications have yet to be settled. Input from the TAG would be helpful here.

Pomax commented 9 years ago

Hmm, my two cents here: the example you give makes "schema data" feel like an arbitrary catch-all for "things that are not ...", and seems in conflict with the core statement that "A URL is a universal identifier".

Treating javascript:doSomething() as an identifier feels like stretching the meaning of the word "identifer" quite a bit, with an attempt made to call everything currently using the [word][colon][thing] format a "URL", whereas I had expected the "javascript:codeGoesHere" string to be an example of what under this new unified and modernized spec we should consider an obsolete format string, and an example of what isn't a URL anymore, despite still being in supported and in use (while at least considered bad practice).

I have no data to back this up, but I seem to recall the javascript:.... string being a hack to get JS triggered before HTML had an adequate element event -> javascript handling system, so this would be an excellent thing to finally retire as "no, we abused the URL notion here and we got stuck with it until now" case.

rubys commented 9 years ago

javascript is indeed a hack, but in general, once a substantial amount of content is deployed on the Internet, generally "retirement" isn't an option. In any case, javascript is but one example. There are plenty more.

domenic commented 9 years ago

Not clear to me what "it" is. :-)

Sorry, I meant the URLs section in general.

rubys commented 9 years ago

Sorry, I meant the URLs section in general.

Ah, hence the title of this issue. DOH!