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

Re: [VE][79] and [VE][61] error in js section

From: David Dorward <david@dorward.me.uk>
Date: Mon, 17 Sep 2007 18:03:28 +0100
Message-Id: <A2AF5662-BE6A-42D3-A50E-BDA93CDC35DB@dorward.me.uk>
Cc: www-validator Community <www-validator@w3.org>
To: <aramclonk@yahoo.de>


On 17 Sep 2007, at 17:54, <aramclonk@yahoo.de> wrote:

> Usually thats the way, but it does not work with regular  
> expressions like this one:
> str.replace(/</g, "&lt;");

It probably does if you instantiate the regular expression using the  
new RegEx constructor and a string, or you could simply not embed  
JavaScript inline and src it from a (cacheable) external file.

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Received on Monday, 17 September 2007 17:04:08 GMT

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