Hi,

I testes my site on http://validator.w3.org and get's the error: "document type does not allow element "div" here" :

.

The reason are the blog teaser on the ride side of my page.

regards
Jan

Comments

jacine’s picture

Category: bug » support

This is likely a result of code in your nodes.

The theme itself validates.

knarzer77’s picture

Project: Sky » Views (for Drupal 7)
Version: 6.x-3.9 » 6.x-2.8

I just noticed that reason comes from the views modul. I have a view which shows the last blog entries with the caption and a teaser (html list). So the code is for instance:

<ul>
<li class="views-row views-row-1 views-row-odd views-row-first">  
	<div class="views-field-title">
		<span class="field-content"><a href="/blog/2010/02/schlachtfestwochen-2010.html">Schlachtfestwochen 2010</a></span>
	</div>
	<span class="views-field-teaser">
		<div class="field-content">..........</div>
	</span>

</li>
</ul>

I seems the code is not XHTML conform.

Jan

dawehner’s picture

Assigned: knarzer77 » Unassigned

This div in the space, comes from cck. You can always theme views to make it working.

@knarzer77
assigned means, you are working at this issue.knarzer77

merlinofchaos’s picture

Status: Active » Fixed

Actually, that span comes, I think, because you have selected to display the field as inline in the style settings. You need to unselect that.

knarzer77’s picture

Status: Fixed » Closed (fixed)

Hi,

thank you. It's was really the inline setting in the views module. Unchecking this solved my problem.

regards
Jan

granttoth’s picture

Same problem here but I'm using Views Slideshow. I do not see the inline option in the style settings. Any Ideas?

UPDATE - Fixed. One set of my slideshow images was linking to the node by default and I had the link field to node checked resulting in one nested in another .