I have the following js code:
$('<div id="pips-calc" />').load("/calculator").appendTo('body').dialog(dialogOpts); return false;}
W3C does not like this and invalidates the page.
The error is:
document type does not allow element "div" here
Is there any alternative syntax, which does validate?
Format the content of the
<script>tag as CDATA, and you will be fine.