W3C home > Mailing lists > Public > www-archive@w3.org > November 2007

Re: Literal slashes in javascript: IRIs

From: Julian Reschke <julian.reschke@gmx.de>
Date: Fri, 23 Nov 2007 13:23:23 +0100
Message-ID: <4746C63B.6000300@gmx.de>
To: Henri Sivonen <hsivonen@iki.fi>
CC: Bjoern Hoehrmann <derhoermi@gmx.net>, www-archive <www-archive@w3.org>

Henri Sivonen wrote:
> Hi,
> http://tools.ietf.org/html/draft-hoehrmann-javascript-scheme-00 says:
>> Use of a byte order mark and literal use of the character "/" should 
>> be avoided.
> The latter requirement seems impractical. Why is this requirement 
> present? Could it be relaxed?
> It doesn't seem particularly plausible that javascript: IRI would 
> participate in a generic IRI/URI operation absolutizing a relative 
> reference relative to a javascript: IRI. Letting a javascript: URI serve 
> as the base URI of an HTML document seems non-sensical, for example, 
> regardless of the presence of slashes.

I personally don't see how the use of "javascript:" in HTML href 
attributes could be made consistent with what the definition of a URI is 
(yes, I know, Björn disagrees, but then the scheme hasn't been 
registered yet, right?).

So for the work in HTML I think it would be better to use a different 
term, and to generally discourage their use (Q: can't the same effects 
be achieved using onClick="..." ?).

BR, Julian
Received on Friday, 23 November 2007 12:24:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:43:16 UTC