W3C home > Mailing lists > Public > www-validator@w3.org > July 2002

Re: URI and escape mechanism

From: Karl Dubost <karl@w3.org>
Date: Wed, 10 Jul 2002 20:07:48 -0400
Message-Id: <a05111b57b9527b4f7881@[24.201.26.36]>
To: Nick Kew <nick@webthing.com>
Cc: <www-validator@w3.org>

At 0:47 +0100 2002-07-11, Nick Kew wrote:
>On Wed, 10 Jul 2002, Karl Dubost wrote:
>http://www.example.org/check?uri=http://www.example.net/path/to/yourfile.html&lang=en
>  >
>>  If we escape "&" only the validator will be fine... but the RFC seems
>>  to say you have to escape also the "/"
>
>Nope.
>
>The validator is validating markup.  The fact that "/" is reserved
>in URI (perfectly legal, but reserved) has no bearing on the
>validity of the HTML.

Except that the validator on port 8001 do not react on a non-escape ampersand.

In HTML 4.01
http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2

"For example, to use the URI "http://host/?x=1&y=2" as a linking URI, 
it must be written <A href="http://host/?x=1&#38;y=2"> or <A 
href="http://host/?x=1&amp;y=2">."


For the "/" is another problem as you said. But it could be a warning.

-- 
Karl Dubost / W3C - Conformance Manager
           http://www.w3.org/QA/

      --- Be Strict To Be Cool! ---
Received on Wednesday, 10 July 2002 20:09:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT