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

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 UTC