Download & Extend

Validation Errors for language and border attributes

Project:Omniture Integration
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active

Issue Summary

When I ran a validator on my site, it complained about the use of:

language="JavaScript" (script tag)
and
border="0" (img tag)

I have a patch that removes these. It was also complaining about and Only local images are allowed. in the so maybe those aren't allowed in there.

AttachmentSize
omniture.module.patch3.22 KB

Comments

#1

I'm not seeing where I can edit the original issue body. The final part of my message got messed up since there was html in there, so here it is again:

It was also complaining about <a> and <img> in the <noscript> so maybe those aren't allowed in there.

#2

Came here looking for this issue. These errors are seen when using a strict doctype.

line 780 column 79 - Error: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
line 781 column 28 - Error: there is no attribute "border"

This module should output xhtml valid code.

The offending lines:

778 <script language="JavaScript" type="text/javascript"><!--
779 if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
780 //--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img src="/8143892"
781 height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->

#3

+1 for all the above

nobody click here