Skip to content

Commit

Permalink
added missing DOM/HTML attribute mapping in IE 'getAttribute()' metho…
Browse files Browse the repository at this point in the history
…d to make it consistent with 'hasAttribute()', fix issue dperini#37 (victor homyakov)
  • Loading branch information
dperini committed May 17, 2011
1 parent 3511226 commit c6853a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nwmatcher.js
Expand Up @@ -735,6 +735,8 @@
} :
function(node, attribute) {
attribute = attribute.toLowerCase();
attribute = attribute in ATTR_MAPPING ?
ATTR_MAPPING[attribute] : attribute;
if (ATTR_DEFAULT[attribute]) {
return node[ATTR_DEFAULT[attribute]] || '';
}
Expand Down

0 comments on commit c6853a1

Please sign in to comment.