Re: Tidy of Script contents desc += "</td></table>";

>The solution for Javascript is easy.  Any time you would have had
>e.g. "</td>", write "<" + "/td>" instead.   
>
>
>	Tidy's behaviour is therefore correct for HTML4.01 documents. (Though I
>	expect XHTML is stricter, and requires CDATA element content to use &lt;/

Sounds like we need a "tidy" for JavaScripts, but the bigger problem seems insuperable.

Thus ensuring that dynamic HTML is written by JavaScript
 in an XHTML consistent manner
is one thing, ensuring that the resulting HTML is itself  XHTML  compliant
is a far worse problem..

The use of  JavaScript seems to be increasing, but boy is it going to cause
problems in the future!

Does anyone know of any  tools that can even begin to look
at the above problems of handling  JavaScripts?  Likewise, are
there any tools for validating  the stylesheet components?
-- 

Henry Rzepa. +44 (0)20 7594 5774 (Office) +44 (0)20 7594 5804 (Fax)
Dept. Chemistry, Imperial College, London, SW7  2AY, UK. 
http://www.ch.ic.ac.uk/rzepa/

Received on Tuesday, 5 September 2000 04:24:22 UTC