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

* 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 UTC