Re: Markup Validator bug fix

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