You wish to validate your selfcreated Joomla component or template against XHTML 1.0 but the validator mentioned issues inside your JavaScript section in the header. You checked the header and the JavaScript in it and you see that it included some HTML elements (the validator didnĀ“t expect such elements in the header).


<script type="text/javascript">
var messpic = new Array(
"<img id='homepagePic' src='/images/homepage1.jpg' alt='Main Home Page Image' border='0' />",

So the <img> elements caused the issues. The solution is to make your script wrapper look like this (see CDATA section):

<script type="text/javascript">
/* <![CDATA[ */

// content of your Javascript goes here

/* ]]> */

as mentioned here as well.

Comments (0)

There are no comments posted here yet

Leave your comments

Posting comment as a guest.
Attachments (0 / 3)
Share Your Location