Lines 33-38
jQuery.fn.highlight = function(pat) {
Link Here
|
33 |
else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) { |
33 |
else if (node.nodeType == 1 && node.childNodes && !/(script|style)/i.test(node.tagName)) { |
34 |
for (var i = 0; i < node.childNodes.length; ++i) { |
34 |
for (var i = 0; i < node.childNodes.length; ++i) { |
35 |
i += innerHighlight(node.childNodes[i], pat); |
35 |
i += innerHighlight(node.childNodes[i], pat); |
|
|
36 |
// HACK FOR TESTING BUG 10956 |
37 |
// Break out of loop with huge i |
38 |
if (i > 400) break; |
36 |
} |
39 |
} |
37 |
} |
40 |
} |
38 |
return skip; |
41 |
return skip; |
39 |
- |
|
|