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 |
Jump to:
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
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
Hi
To get around this problem wrap empty div tags around the call to your insert view statement.
<div>[view:viewABC]
</div>
Gary