[whatwg] Script, style and backwards compatibility
Ian Hickson
ian at hixie.ch
Thu May 8 23:06:19 PDT 2008
On Fri, 9 May 2008, Åke Järvklo wrote:
> 2008/5/9 Ian Hickson <ian at hixie.ch>:
> >
> > Is there really any need to escape the contents of <script>/<style> at
> > all These days?
>
> I don't know - does HTML5 currently handle situations like <script
> type="text/javascript">document.write('</script>');</script> for
> text/html serializations?
Sure, you just do the same as you've always had to do:
<script type="text/javascript">
document.write('<\/script>');
</script>
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list