delimiting scripts with xhtml
Hi Albert,
I have both a fascination and hate relationship with xhtml.
For some reason, years ago I felt compelled to convert to xhtml strict, but wasn't ready to commit on the xml doc type, instead sticking with text/html. I thought everything was great until you and I discussed document.writes with xhtml and found out my code didn't validate via W3C, even tho CSE had no problem with it.
To make W3C happy, after reviewing this Mozilla dev page, I added comments to my scripts, but CSE doesn't like that.
I already use external style and scripts, but this is the inline content that varies on each page.
Now I'm tempted to change to a different doc type.
I have both a fascination and hate relationship with xhtml.
For some reason, years ago I felt compelled to convert to xhtml strict, but wasn't ready to commit on the xml doc type, instead sticking with text/html. I thought everything was great until you and I discussed document.writes with xhtml and found out my code didn't validate via W3C, even tho CSE had no problem with it.
To make W3C happy, after reviewing this Mozilla dev page, I added comments to my scripts, but CSE doesn't like that.
- Code: Select all
<script type="text/javascript">
<!--
function SavePrefs(){}
function LoadPrefs(){if(emulateDesktop){InsertTopLogo();}rndtestimonial(false,true);showfeatdiv();showtradeshows();Copyright();}
// -->
</script>
I already use external style and scripts, but this is the inline content that varies on each page.
Now I'm tempted to change to a different doc type.