does not validate due to an incorrect usage of span

Voro-Experior - July 22, 2008 - 08:18
Project:NewsFlash
Version:6.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

in node.tpl.php you should change

<span class="taxonomy"><?php print $terms?></span>

to

<div class="taxonomy"><?php print $terms?></div>

w3c validator complains that

document type does not allow element "ul" here

because

you have attempted to put a block-level element inside an inline element

#1

roopletheme - July 22, 2008 - 19:52

I've actually re-written the entire theme to eliminate the tables, fix several issues, and to provide a 6.x version. The re-write is completely WC3 compliant. We're in the final stages of beta testing before I update the d.o project page. In the mean time, you can see and download the new version at the NewsFlash Demo Site.

#2

Voro-Experior - July 24, 2008 - 08:57

ok, I'll try it.
I think you can close this issue.

#3

roopletheme - September 9, 2008 - 00:32
Status:needs review» closed

Fixed in 1.6.

#4

fgm - April 25, 2009 - 22:23
Version:5.x-1.3» 6.x-1.6
Status:closed» patch (to be ported)

Same problem in 6.1.6. Same solution:

- replace <span class="taxonomy>... by a div in node.tpl.php, to abide by the block/inline containment rules
- add display: inline to node .taxonomy in style.css

 
 

Drupal is a registered trademark of Dries Buytaert.