1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-06 19:02:30 +01:00

Fix zapper not being able to remove SVG elements

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1237
This commit is contained in:
Raymond Hill 2020-09-09 10:51:30 -04:00
parent 57c7fd1900
commit 6f7801d433
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 1 additions and 2 deletions

View File

@ -150,7 +150,6 @@ const candidateFromFilterChoice = function(filterChoice) {
return filter;
}
// TODO: Maybe add another step to remove attribute values?
const specificity = [
0b0000, // remove hierarchy; remove id, nth-of-type, attribute values
0b0010, // remove hierarchy; remove id, nth-of-type

View File

@ -898,7 +898,7 @@ const zapElementAtPoint = function(mx, my, options) {
elem = elementFromPoint(mx, my);
}
if ( elem instanceof HTMLElement === false ) { return; }
if ( elem instanceof Element === false ) { return; }
const getStyleValue = function(elem, prop) {
const style = window.getComputedStyle(elem);