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

Re: WWW-Validator Bug (response to private mail on other topic)

From: Claus Färber <list-www-validator@faerber.muc.de>
Date: 17 Jun 1999 00:13:00 +0200
To: www-validator@w3.org
Message-ID: <7J3PxeD3cDB@faerber.muc.de>
Earl Hood <ehood@hydra.acs.uci.edu> schrieb/wrote:
> (I'm unclear why the document is split into an array).  If the data is
> passed in as a single string, a comment stripping regex:
>
> 	s/<!--([^-]|-[^-])*--\s*>//go;

This not true either. It would only be valid if there were no elements  
that could contain CDATA.

And it won't catch legal comment syntax:

<!-- comment 1 --
  -- comment 2 -->

-- 
Claus Andre Faerber <http://www.faerber.muc.de>
PGP: ID=1024/527CADCD FP=12 20 49 F3 E1 04 9E 9E  25 56 69 A5 C6 A0 C9 DC
Received on Thursday, 17 June 1999 13:32:14 GMT

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