Commits

Anonymous committed e677cf2

Ported [658] to stable

Comments (0)

Files changed (1)

         newNode.nodeValue = newNode.nodeValue.substr(word.length);
         node.parentNode.insertBefore(span, newNode);
       }
-    } else {
+    } else if (!node.nodeName.match(/button|select|textarea/i)) {
       // Recurse into child nodes
       for (var i = 0; i < node.childNodes.length; i++) {
         highlightWord(node.childNodes[i], word, searchwordindex);