Hi guys.
We've encountered some W3C validation errors related to sitecatalyst module:

1. Error Line 817, Column 80: document type does not allow element "a" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag

…ipt><a href="http://www.omniture.com" title="Web Analytics"><img src="/6830627"

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

2. Error Line 818, Column 56: end tag for "noscript" which is not finished

height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->

Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists require appropriate list items (<ul> and <ol> require <li>; <dl> requires <dt> and <dd>), and so on.

This is the doctype declaration:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="XHTML+RDFa 1.0" dir="ltr"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:dc="http://purl.org/dc/terms/"
  xmlns:foaf="http://xmlns.com/foaf/0.1/"
  xmlns:og="http://ogp.me/ns#"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xmlns:sioc="http://rdfs.org/sioc/ns#"
  xmlns:sioct="http://rdfs.org/sioc/types#"
  xmlns:skos="http://www.w3.org/2004/02/skos/core#"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema#">

Here is where the code from the html source:

...
  </div>
</div>
  <!-- SiteCatalyst code version: H.20.3.
Copyright 1996-2013 Adobe, Inc. -->
<script type="text/javascript" language="JavaScript" src="https://localhost/g4www/www/sites/all/modules/contrib/sitecatalyst/s_code.js?miiek5"></script>
<script type="text/javascript" language="JavaScript"><!--
if(s){
	s.pageName = "";
	s.t();
}
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)//--></script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img src="/7544538"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.20.3. -->
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery(document).ready(
      function(){ 
...
      });
    
//--><!]]>
</script>
</body>
</html>
CommentFileSizeAuthor
#2 sc-w3c.patch1.34 KBbleen
#1 sc-w3c.patch1.19 KBbleen

Comments

bleen’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB
bleen’s picture

StatusFileSize
new1.34 KB

missed one w3c error

bleen’s picture

this was such a straightforward fix that I went ahead and committed once testbot confirmed that the patch applied

bleen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.