Hi there,
What about changing the script snippet to:
<script type="text/javascript" charset="utf-8"> // <![CDATA[ $0 // ]]> </script>
This would make it more palatable under XHTML and of course, it can be modified to make the CDATA enclosures deleteable by tabbing, with a few extra pieces of TextMate code. Just a thought...
On 28/8/2006, at 19:11, Glenn Batuyong wrote:
[...] This would make it more palatable under XHTML
But no-one sends their pages as application/xhtml+xml, so even though people like to use XHTML markup, their pages are interpreted as HTML by the browser, and in that mode a script tag ends when the first occurrence of ‘</’ is seen -- so I don’t see any advantage in introducing the proposed noisy comments.