Never mind!...

I found the answer ...

Incase anyone was wondering and didnt do it you need to wrap your javascript 
in
<script src="..." type="...">
<![CDATA[
var foo='bar';
]]>
</script>

Perhaps i am possibly the only person on the planet who didnt know this!


Alex Mcauley
http://www.thevacancymarket.com
----- Original Message ----- 
From: "Alex Mcauley" <webmas...@thecarmarketplace.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Monday, September 14, 2009 11:25 AM
Subject: [Proto-Scripty] Prototype and Xhtml validation



Good morning peoples!..

Perhaps not totally on topic but prototype related nontheless

I was just validating my site using http://validator.w3.org to which i
got 1767 errors. Most of these errors pertain to javascript inside
prototype - for example...

Line 26, Column 67: character "&amp;" is the first character of a
delimiter but occurred as data

…2',Browser:{IE:!!(window.attachEvent&&!window.opera),Opera:!!
window.opera,Web

In the above it is moaning about the "&".... does anyone know why the
validator would be doing this when the prototype is loaded in a valida
script block?


Thanks in advance

Alex Mcauley



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to