1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +01:00

Also remove text node in :remove() operator

Related discussion:
- https://github.com/gorhill/uBO-Extra/issues/119#issuecomment-537842967

As an incidental side effect, this may or may not
prevent execution of the content of some inline
script tags.
This commit is contained in:
Raymond Hill 2020-03-09 11:34:49 -04:00
parent 0f33f2386d
commit 2cbbc30084
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -813,6 +813,7 @@ vAPI.DOMFilterer = (function() {
removeNodes(nodes) {
for ( const node of nodes ) {
node.textContent = '';
node.remove();
}
}