XHTML valid inline Javascript

Discussion in 'HTML & Website Design' started by Taciturne, Sep 6, 2009.

  1. #1
    First, a snippet
    <script type="text/javascript">//<![CDATA[
    document.write('<style type="text/css">.tabber { display:none; }<\/style>');
    //]]></script>
    Code (markup):
    Second, my question: is it possible to erase the "\r\n"s and still be valid yet functional?

    Because obviously "//" comments the whole thing when on a single line
     
    Taciturne, Sep 6, 2009 IP