W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

Re: comment nodes

From: Joseph Kesselman/Watson/IBM <keshlam@us.ibm.com>
Date: Fri, 22 Sep 2000 10:07:33 -0400
Cc: www-dom@w3.org
Message-ID: <OF6EB2A011.459BA838-ON85256962.004D44F9@pok.ibm.com>

>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 &gt;,
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

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC