W3C home > Mailing lists > Public > www-html@w3.org > March 2003

Re: carriage return or line feed in URI attribute values?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 02 Mar 2003 06:37:28 +0100
To: Jim Correia <correia@barebones.com>
Cc: www-html@w3.org
Message-ID: <3e688d61.199570857@smtp.bjoern.hoehrmann.de>

* Jim Correia wrote:
>What does the specification have to say about
>
><a href="http://www.example.com/
>index.html">Example</a>
>
>Notice the line break in the middle of the attribute value.

White-space is disallowed in URIs, thus the document is invalid. HTML
4.01 does not specify how (nor if) user agents must recover from this
error.

>Does something somewhere in the spec or sgml rules say that this should 
>be the case, or is this just browser behavior correcting for something 
>it shouldn't have been feed in the first place?

Yes.
Received on Sunday, 2 March 2003 00:36:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT