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

Re: & did not start a character reference. (& probably should have been escaped as &.)

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 11 Dec 2013 11:39:16 +0200
Message-ID: <52A832C4.7010904@cs.tut.fi>
To: Patti Arouni <Patti.Arouni@ntcmn.edu>, "www-validator@w3.org" <www-validator@w3.org>
2013-12-10 4:22, Patti Arouni wrote:

> This error message is occurring in our pages because the link url
> contains a ? to separate parameters.
>
> The ? is necessary to send the parameters.  I think links should be
> excluded from this test.

The message relates to the ampersand "&", not "?".

It is always safe, and possibly obligatory, to "escape" the ampersand 
e.g. as "&amp;".

Whether it is obligatory depends on HTML version and may also depend on 
context.

Yucca
Received on Wednesday, 11 December 2013 09:39:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:09 UTC