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

Re: comment nodes

From: Dieter Köhler <dieter.koehler@ppp.uni-bamberg.de>
Date: Fri, 22 Sep 2000 23:44:44 +0200
Message-ID: <39CBD2CC.29EE570E@ppp.uni-bamberg.de>
To: "www-dom@w3.org" <www-dom@w3.org>
> >>      <!-- &#45;&#45;-->
> >...
> > It's well-formed; the only sequences that matter in a comment are "--"
> > (illegal) and "-->" (terminator).All other characters are so much junk.

For completeness:  A a comment with a nodeValue ending in the
character '-' is also well-formed (see XML Erratum 27).

> That's about what I expected. The problem is that the DOM has committed to
> showing people their "junk",  so we have to decide whether the content of
> that comment should be reported as " -- " or " &#45;&#45; "

The XML spec says that comments are not part of the document's
character data (§ 2.5), likewise prod. [15] does not refer to
'CharRef' (prod. [66]) when defining 'Comment'.  This seems to me to
be a strong indication, that the character sequence '&#45;&#45;' in a
comment is ontologically nothing else than a character sequence.

-- 
=====================================================================
 Dieter Köhler, M. A. - dieter.koehler@ppp.uni-bamberg.de
 Mittlere Kaulberg 22, D-96049 Bamberg, +49(0)951-5190726
 "http://www.philo.de/Philosophie-Seiten/": 1000+ Philosophie-Links
 "http://www.philo.de/VirtualLibrary/14.de.htm": Deutsche Philo-Links
 "http://www.philo.de/xml/": Open XML - XML-Komponenten für Delphi
=====================================================================
Received on Friday, 22 September 2000 17:45:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT