| Issue 54: | data attribute is not valid in XHTML1.0 Strict and HTML 4.01 Strict | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Validator says:
Line nn, Column nn: there is no attribute "data".
<li data="{title: 'node1'}">node1</li>
You have used the attribute named above in your document, but the document
type you are using does not support that attribute for this element. This
error is often caused ...
Nov 30, 2008
(No comment was entered for this change.)
Labels:
-Milestone-Release0.3 Milestone-Release0.4
Jan 14, 2009
The <li> syntax has been changed, so that in most cases no 'data' attribute is required. Check the docs for details.
Status:
Fixed
Jul 17, 2012
considered verified
Status:
Verified
|
The key can be read from the ID. Most of the other flags could as well be passed as class names. Example: <li data="{key: '1234', isFolder: true, isLazy: true, expand: true }">title Could be written as <li id="1234" class="folder lazy expand"> or <li id="ui-dynatree-id-1234" class="ui-dynatree-folder ui-dynatree-lazy ui-dynatree-expand"> 'tooltip' could be passed as title="". Extended node attributes like "icon" or or custom attributes must stille be passed as data="".