Re: CDATA in elements and attributes

On 15.04.00 at 13:04, TimP <tim@paneris.co.uk> wrote:

>Now, about "TimP's Markup Validator", to make this I just download the
>validator and trap the entity errors?

It's not quite as simple as that. This will supress *all* messages relating
to character entity references. It can be done, but it'd require some
relatively serious hacking to accomplish. You'll want to look at the code
that discards bogus messages from nsgmls (search for "65") and modify it to
supress the messages you don't want.

However, it must be noted, that the net result is *not* valid HTML; should
*not* be labelled as it (with the W3C icons); and User-Agent behaviour when
confronted with it is not guaranteed. Do this at your own risk!

Received on Saturday, 15 April 2000 17:47:49 UTC