Active
Project:
Embeddables
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
16 May 2012 at 20:34 UTC
Updated:
16 May 2012 at 22:31 UTC
Jump to comment: Most recent file
The current implementation of the custom content attributes, for example:
<div class="drupal-embed" nid="20" view_mode="teaser" >
Breaks the HTML5 validation. Fortunately the current HTML5 spec allows for custom attributes:
http://www.w3.org/TR/2011/WD-html5-20110525/elements.html#custom-data-at....
The new rendered code would look like:
<div class="drupal-embed" data-nid="20" data-view_mode="teaser" >
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | custom_attributes_html5_compatible-1585998-1.patch | 856 bytes | fxarte |
Comments
Comment #1
fxarte commentedThis patch replaces the original values nid and view_modes with data-nid and data-view_mode by expanding the replacement already present in the module: