Closed (cannot reproduce)
Project:
Entity Box Types
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2012 at 19:01 UTC
Updated:
24 Oct 2012 at 21:37 UTC
Not sure if always, but at least in the cases where I looked the class attribute in the entity box rendered content HTML had the class attribute duplicated, producing an HTML validation error.
The problem seems to be caused by the way the class attribute is handled in the template. Right now it explicitly prints the class and also, with no check the variable $attributes, which also contains the class information.
<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
And this is the output:
<div class="entity entity-entity-boxes entity-boxes-my-box-type clearfix" about="/entity_boxes/16" typeof="" class="entity entity-entity-boxes entity-boxes-my-box-type">
Comments
Comment #1
brenk28 commentedTook a look at this, I wasn't seeing this in any of the entity boxes I was using. As far as the template, the core block template does the same thing with the classes and attributes... I wonder if some other module could be causing this maybe.
Comment #2
jec006 commented