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

Ampersands in JavaScript

From: Peter Laudy <p.laudy@stream-group.nl>
Date: Wed, 18 Jul 2007 11:37:09 +0200
Message-ID: <079C37DA7146864A94FB083392D10640016243D2@bb-exch02.bizbox.lcl>
To: <www-validator@w3.org>

Hi,

I'm developing a web page, where I compose a URL in JavaScript and then
send it to the server using an XmlHttpObject (like you would when using
AJAX). This means that the URL is not processed by an HTML parser. If I
use the & sign to add parameters to this URL, the page does not
validate. If I use &amp; the URL is not correct.

The page can be found under

http://dev.mediamall.tv/mm-peter--test/AmpProblem.htm

With kind regards,

Peter Laudy
Received on Wednesday, 18 July 2007 19:06:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:25 GMT