Skip to content

Commit

Permalink
Filter out image tags, which also may contain a .href attribute (in I…
Browse files Browse the repository at this point in the history
…E10).

[git-p4: change = 48148087]
  • Loading branch information
zhaoz committed Jun 17, 2013
1 parent 712f4d7 commit d39893e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nav/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ spf.nav.handleClick = function(evt) {
}
// Adjust the target element to be the one with an href.
var target = spf.dom.getAncestor(evt.target, function(node) {
return node.href;
// Images in IE10 can have an href.
return node.href && node.tagName.toLowerCase() != 'img';
}, linkEl);
// Ignore clicks on targets without an href.
if (!target) {
Expand Down

0 comments on commit d39893e

Please sign in to comment.