productinrow module not XHTML 1.1 compatible ?

ahahto

Avatar: ahahto

2007-06-26 19:28

I ran validator http://validator.w3.org on my page and it show that productinrow.tpl lines 2-4 are not xhtml 1.1 compatible:

<style type="text/css">
#productsInRow td{width:$aList[iWidth]%;}
</style>

How I can fix this ?

» Quick.Cart v2.x

ahahto

Avatar: ahahto

2007-06-26 21:01

Here is full error message:

Error Line 105, column 22: document type does not allow element "style" here .
<style type="text/css">
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

merci

No avatar

2007-06-27 09:43

ahahto - maybe try to put style to td.
In file templates/productsInRow.tpl remove this:

<style type="text/css">
#productsInRow td{width:$aList[iWidth]%;}
</style>


than find

<!-- BEGIN LIST_LIST -->
  <
td>

and replace with:

<!-- BEGIN LIST_LIST -->
  <
td style="width:$aList[iWidth]%;">

ahahto

Avatar: ahahto

2007-06-27 17:18

Thanks, now it is xhtml 1.1 valid !

Back to top
about us | contact