DIV breaks XHTML compliance

brmassa - April 19, 2007 - 07:18
Project:Insert View
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

guys,

using DIV to show the view inside a node breaks the XHTML compliance. its because its not allowed to insert DIVs inside

or heading tags.

a solution is to use SPAN instead. since span differs from div because it is display css attribute is set as inline, the module should also include a css file with: ".view {display:block;}".

XHTML compliance is a requirement made by many clients.

best regards,

massa

#1

mlsamuelson - July 1, 2007 - 03:49
Status:active» won't fix

The Insert View module simply passes along code generated by the Views module. I'm guessing that your issue should be addressed to the Views module.

mlsamuelson

#2

garyh - September 24, 2008 - 13:45

Hi

To get around this problem wrap empty div tags around the call to your insert view statement.

<div>
[view:viewABC]
</div>

Gary

 
 

Drupal is a registered trademark of Dries Buytaert.