16 Nov
2004
16 Nov
'04
4:45 p.m.
I wrote:
The HTML spec on dynamic document modification:
http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.4
points out that you can also escape the forward slash (all of them need escaping, not just the first one), e.g.:
if (gecko) document.write('<\/table><\/td><\/tr>')
Here is the portion of the spec which mandates terminating the content of a CDATA-typed element (e.g, '<script>' or '<style>') at the first occurence of '</': http://www.w3.org/TR/REC-html40/types.html#h-6.2 Tres. -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com