Re: [REX] Inserting comments?

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 UTC