W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1999

Re: "<" and ">" within text nodes

From: John Cowan <cowan@locke.ccil.org>
Date: Fri, 16 Apr 1999 16:09:40 -0400 (EDT)
Message-Id: <199904162009.QAA21230@locke.ccil.org>
To: rayw@imall.com (Ray D. Whitmer)
Cc: LWatanab@JetForm.com, www-dom@w3.org
Ray D. Whitmer scripsit:

> During output, a text node may encode <, >, and & as &lt;, &gt;, and &amp;.  
> This is not ad-hoc.  This is how it is done.

Agreed.

> Likewise a CDATASection may
> contain arbitrary text, and may encode "]]>" as "]]><![CDATA[>".

This can only arise if the CDATASection was created or modified by the
application, which means that two CDATASection nodes will be created
if the document is read back in.

I think you need one more "]]".

-- 
John Cowan					cowan@ccil.org
		e'osai ko sarji la lojban.
Received on Friday, 16 April 1999 16:12:48 GMT

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