If you use XHTML doctype, you can add CDATA comment, this will prevent possible validation errors.
Example: <script type="text/javascript"> /* <![CDATA[ */ jQuery(document).ready(function(){ jQuery("ul.sf-menu").superfish(); }); /* ]]> */ </script> I mostly work on Magento projects these days that use inline script heavily, experience show that lack of CDATA comment doesn't always trigger validation error. tee On Jun 30, 2010, at 1:42 PM, Susan Grossman wrote: > > Raises another question. How does one handle inline javascript these > days? Because of the dyanmic nature of a site sometimes the JS can't > go in external URL's Links with eventhandlers. etc. > > > > I find that adding into these meta tags into the header can solve the inline > validation issues sometimes, depending on the doctype. > <meta http-equiv="Content-Style-Type" content="text/css" /> > > <meta http-equiv="Content-Script-Type" content="type" /> ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *******************************************************************