diff --git a/src/nwmatcher-base.js b/src/nwmatcher-base.js index 8b66e62..93cc1c8 100644 --- a/src/nwmatcher-base.js +++ b/src/nwmatcher-base.js @@ -226,7 +226,7 @@ return element || null; }, - _byId = !('fileSize' in doc) ? + _byId = !IE_LT_9 ? function(id, from) { id = (/\\/).test(id) ? unescapeIdentifier(id) : id; return from.getElementById && from.getElementById(id) || diff --git a/src/nwmatcher-noqsa.js b/src/nwmatcher-noqsa.js index 32bcd04..9ecf812 100644 --- a/src/nwmatcher-noqsa.js +++ b/src/nwmatcher-noqsa.js @@ -228,7 +228,7 @@ return element || null; }, - _byId = !('fileSize' in doc) ? + _byId = !IE_LT_9 ? function(id, from) { id = (/\\/).test(id) ? unescapeIdentifier(id) : id; return from.getElementById && from.getElementById(id) || @@ -323,7 +323,7 @@ isLink = function(element) { - return hasAttribute(element,'href') && LINK_NODES[element.nodeName]; + return hasAttribute(element, 'href') && LINK_NODES[element.nodeName]; }, nthElement =