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:
parent
0f33f2386d
commit
2cbbc30084
@ -813,6 +813,7 @@ vAPI.DOMFilterer = (function() {
|
||||
|
||||
removeNodes(nodes) {
|
||||
for ( const node of nodes ) {
|
||||
node.textContent = '';
|
||||
node.remove();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user