W3C home > Mailing lists > Public > public-qa-dev@w3.org > April 2011

Re: HTML entities and the validator...

From: <peasthope@shaw.ca>
Date: Sat, 23 Apr 2011 16:09:34 -0800
Message-ID: <171056983.66146.58574@heaviside.invalid>
To: public-qa-dev@w3.org
Cc: peasthope@shaw.ca

I may not understand properly but might have something helpful.

From:	sierkb@gmx.de
Date:	Sat, 23 Apr 2011 15:48:34 +0200
> is there, by any means, anywhere, a definition, if in 
> HTML (concrete: HTML 4.01) and/or it's parent, SGML, it's 
> allowed and valid to shorten an entity (like &amp;) to 
> "&;" (Ampersant + Semikolon) in a given <a href="URL"> 
> with &; instead of &amp;" within an URL construct, so that 
> the W3C Markup Validator is right, in NOT labeling it as 
> an error and let passing it as valid?

According to RFCs 2396 and 3986, "&" must be % encoded when 
not serving in a reserved role in a URI.  So I wonder whether 
your error message from the validator is a consequence of the 
"&" not being % escaped.

Ref. http://en.wikipedia.org/wiki/Uniform_Resource_Identifier

Regards,            ... Peter E.

Telephone 1 360 450 2132.  bcc: peasthope at shaw.ca
Shop pages http://carnot.yi.org/ accessible as long as the old drives survive.
Personal pages http://members.shaw.ca/peasthope/ .
Received on Saturday, 23 April 2011 23:10:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 23 April 2011 23:10:16 GMT