Re: comment nodes

>Is it legal for a comment node to be created or modified to contain the
>string '-->' in it?

As far as the DOM is concerned, yes. It's the serializer's responsibility
to do something appropriate with it -- complain, or change the > into >,
or whatever seems reasonable -- and/or your application's responsibility
not to create this situation in the first place.

We expect DOM Level 3 will add the ability to request a well-formedness
check, which will report this sort of thing.

______________________________________
Joe Kesselman  / IBM Research

Received on Friday, 22 September 2000 10:34:12 UTC