Re: validator problem: bogus "entity" in URL

On Sat, 2004-05-08 at 15:16, Charles Curley wrote:
> Line 241, column 67: general entity "mode" not defined and no default entity
> 
> ...inuxjournal.com/article.php?sid=5954&mode=thread&order=0" >Solitaire: A Consu
>                                        ^
> The ampersand about which the validator is complaining is in a URL,
> not part of a character entity.

It is part of an HTML document; in an HTML document & indicates the
beginning of an entity. It doesn't stop meaning the beginning of an
entity just because you are writing a URL in an HTML document.

The validator even tells you exactly how to fix the problem:
  If you wish to cause an "&" to appear within text _or_a_URL_, escape
it by using "&".
... and it does this directly under the error message.

You don't even have to read the FAQ anymore:
http://validator.w3.org/docs/help.html#faq-ampersand

-- 
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>

Received on Saturday, 8 May 2004 14:36:10 UTC