mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
browser: IE11 from hell #452
This commit is contained in:
parent
9783b8af0f
commit
7de76ad337
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ function elementContains( txt, e ){
|
||||||
if( e ){
|
if( e ){
|
||||||
var tree = document.createTreeWalker( e, 4 /* NodeFilter.SHOW_TEXT */, function( node ){
|
var tree = document.createTreeWalker( e, 4 /* NodeFilter.SHOW_TEXT */, function( node ){
|
||||||
return regex.test( node.data );
|
return regex.test( node.data );
|
||||||
});
|
}, false );
|
||||||
var node = null;
|
var node = null;
|
||||||
while( node = tree.nextNode() ){
|
while( node = tree.nextNode() ){
|
||||||
nodes.push( node.parentElement );
|
nodes.push( node.parentElement );
|
||||||
|
|
Loading…
Reference in a new issue