Jump to content

Tidy Suggestions for Embedded Javascript


Recommended Posts

Hello,When I run Tidy on my document, some CDATA structure is placed around my function. However, its commented out. What would be the purpose of this CDATA structure? Is is required for XHTML compliance? I guess its not fully required or Tidy would not have made the stuff commented out.

  <script type="text/javascript">//<![CDATA[		   function newWindow() {foodWindow = window.open("images/snowyGate.jpg",		   "foodWin", "width=250,height=188")}  //]]>  </script>


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...