W3C home > Mailing lists > Public > public-webapi@w3.org > February 2006

Re: [REX] Inserting comments?

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 9 Feb 2006 23:16:45 +0000 (UTC)
To: Robin Berjon <robin.berjon@expway.fr>
Cc: Stephane Bortzmeyer <bortzmeyer@nic.fr>, public-webapi@w3.org
Message-ID: <Pine.LNX.4.62.0602092310220.28514@dhalsim.dreamhost.com>

On Thu, 9 Feb 2006, Robin Berjon wrote:
> > 
> > A DOMNodeInserted event can insert a comment. But I do not find how to 
> > express it in REX.
> > 
> > <event target='/some/where' name='DOMNodeInserted'>
> >   <!-- I assume this comment is a comment in the REX file and will
> >   *not* be inserted -->
> > </event>
> 
> No, actually, if the target DOM supports comments, then this comment 
> will in fact be inserted into the target document. Is there any part of 
> the specification which makes you believe that it would not or that 
> could be clarify for you to be certain that comments can indeed be 
> supported in this manner?

XML 1.x makes it pretty clear that comments shouldn't be used for semantic 
purposes, IMHO.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 9 February 2006 23:16:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT