W3C home > Mailing lists > Public > www-validator@w3.org > May 2004

Re: validator problem: bogus "entity" in URL

From: David Dorward <david@dorward.me.uk>
Date: Sat, 08 May 2004 19:37:15 +0100
To: Charles Curley <charlescurley@charlescurley.com>
Cc: www-validator@w3.org
Message-Id: <1084041433.2273.4.camel@localhost>

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 "&amp;".
... 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 GMT

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