W3C home > Mailing lists > Public > www-validator@w3.org > September 2013

Re: bug in the checker - it read inside quoted href text and complaining about operands

From: David Dorward <david@dorward.me.uk>
Date: Mon, 02 Sep 2013 23:36:38 +0100
To: www-validator@w3.org
Message-ID: <75317791-DDD3-45CD-830C-CD2B800816EE@dorward.me.uk>
On 31 Aug 2013, at 16:29, Thomas W. Lynch wrote:
> 264  <a href="http://abcnews.go.com/TheLaw/story?id=4678143&page=1">
> FLDS Scandal</a>
>
> 1. Error general entity X not defined and no default entity

That is not a bug. An & character indicates the start of a entity 
reference, and being inside an href attribute doesn't change that.

The validator even explicitly says "The most common cause of this error 
is unencoded ampersands in URLs".

Represent your & as &amp;.


-- 
David Dorward
http://dorward.co.uk/
Received on Monday, 2 September 2013 22:37:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 September 2013 22:37:14 UTC