Skip to content

Commit

Permalink
Replaced the getAttribute target rel by data-list for HTML5 validation
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbechade committed Nov 28, 2011
1 parent 8329f61 commit 8e2c6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function List(id, options, values) {
if (target === undefined) {
value = valueName;
} else {
value = ListJsHelpers.getAttribute(target, 'rel');
value = ListJsHelpers.getAttribute(target, 'data-list');

if (ListJsHelpers.hasClass(target, asc)) {
ListJsHelpers.addClass(target, desc);
Expand Down

0 comments on commit 8e2c6fd

Please sign in to comment.