Patrick wrote: 
> have a read through
> http://devedge.netscape.com/viewsource/2003/xhtml-style-script/
> 
> ...but to answer the question quickly: it should work if you use
> 
> //<![CDATA[
> //]]>

Right, but that only deals with JS embedded in its own <script></script>
block. I've used that before if I wasn't able to remove the JS and put it in
an external file.

This breaks down though, for references like this in the page for
bookmarklets (pardon the length):

<a href="javascript:var l=document.links.length;var s='';for
(i=0;i<l;i++){var lk=document.links[i];s+='<tr valign=top>';s+='<td>' +
lk.innerHTML + ' </td>';s+='<td>' + lk.title + ' </td>';s+='<td><a
href='+lk.href+'>' + lk.href + '</a></td>';s+='</tr>';}s='Links for:
'+document.location.href+'<table border=1 style='font:x-small verdana'><tr
valign=top><th>Text</th><th>Title</th><th>URL</th></tr>'+s+'</table>';var
lw=window.open('', 'lw',
'');lw.document.open();lw.document.write(s);lw.document.close();">
   Links and Titles
</a>

Adding proper escape sequences to inline JS in this case just won't work, or
perhaps I'm missing something?

Best regards,
Derek.
-- 
Derek Featherstone     [EMAIL PROTECTED]
phone: 613.599.9784;   toll-free: 1.866.932.4878 (North America)
Web Accessibility:  http://www.wats.ca
Web Development: http://www.furtherahead.com
Personal: http://www.boxofchocolates.ca

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************

Reply via email to