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

Re: Markup Validator bug fix

From: Sierk Bornemann <sierkb@gmx.de>
Date: Wed, 5 Sep 2007 15:13:27 +0200
Message-Id: <016EDC07-1352-43FF-838E-62E6DD540F93@gmx.de>
Cc: www-validator@w3.org
To: aaron@causal.ca


Am 05.09.2007 um 03:29 schrieb Aaron:

>
> An "&" character in the "src" field of the "img" tag throws a  
> series of errors beginning with:
> /
>
> Line 126, Column 44/: cannot generate system identifier for general  
> entity "sml".
>
> |<img height=225 width=300 src="pie.php?id=1&*s*ml=1"  
> alt="Religions"><br>|
>
> ‚úČ <http://validator.w3.org/feedback.html?uri=http%3A%2F% 
> 2Fwww.causal.ca%2Fgraph%2Fcanvas.php;errmsg_id=338#errormsg>
>
> An entity reference was found in the document, but there is no  
> reference by that name defined. Often this is caused by misspelling  
> the reference name, unencoded ampersands, or by leaving off the  
> trailing semicolon (;). *The most common cause of this error is  
> unencoded ampersands in URLs* as described by the WDG <http:// 
> www.htmlhelp.com/> in "Ampersands in URLs <http://www.htmlhelp.com/ 
> tools/validator/problems.html#amp>".

This is not a fault by the validator, but a fault by yourself.
You already have got the answer to your problem: read again and  
carfully, what the validator's error message tells you and where it  
points you to (http://www.htmlhelp.com/tools/validator/ 
problems.html#amp). Then correct your faults: you obviously did not  
masquerade the "&" in your URL. Please use &amp; in your URL instead  
of simply "&", otherwise the subsequent (CGI-/PHP-)Variable(s) as  
part of the URL would be misinterpreted as HTML-Entities (which  
always do begin with an "&"-like ampersand), which certainly don't  
exist in the vocabulary of HTML (so an ampersand itself has to be  
written as a valid HTML entity: &amp;, when used).


Sierk

-- 
Sierk Bornemann
email:            sierkb@gmx.de
WWW:              http://sierkbornemann.de/
Received on Wednesday, 5 September 2007 13:13:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:08:59 UTC