W3C home > Mailing lists > Public > www-validator@w3.org > June 2012

[VE][html5] explaining why "&" is invalid in href value

From: Michele Salvador <michelesalvador@iol.it>
Date: Thu, 28 Jun 2012 10:15:13 +0200
Message-ID: <4FEC1291.9030809@iol.it>
To: www-validator@w3.org
Validating http://www.michelesalvador.it/u/
Error [html5]: "& did not start a character reference. (& probably 
should have been escaped as &amp;.)"

In my webpage I have a lot of "&" in href attribute
something like this:  <a href="?one=foo&two=bar">
and validator properly reports them as errors

My suggestion is to provide some brief explanation of why '&' is 
incorrect in href value and should be replaced with &amp;
something like http://htmlhelp.com/tools/validator/problems.html#amp

thank you
Michele Salvador, Italy
Received on Thursday, 28 June 2012 09:51:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:27 UTC