browser: IE11 from hell #452

This commit is contained in:
Sören Weber 2023-02-04 16:53:05 +01:00
parent 9783b8af0f
commit 7de76ad337
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -968,7 +968,7 @@ function elementContains( txt, e ){
if( e ){
var tree = document.createTreeWalker( e, 4 /* NodeFilter.SHOW_TEXT */, function( node ){
return regex.test( node.data );
});
}, false );
var node = null;
while( node = tree.nextNode() ){
nodes.push( node.parentElement );