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

From: Claus Färber (list-www-validator@faerber.muc.de)
Date: Wed, Jun 16 1999


Date: 17 Jun 1999 00:13:00 +0200
From: list-www-validator@faerber.muc.de (Claus Färber)
To: www-validator@w3.org
Message-ID: <7J3PxeD3cDB@faerber.muc.de>
Subject: 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