mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
Also CSS-escape tag name in element picker
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1519
This commit is contained in:
parent
eba8379192
commit
9f063c717b
@ -401,7 +401,7 @@ const cosmeticFilterFromElement = function(elem) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Tag name
|
// Tag name
|
||||||
const tagName = elem.localName;
|
const tagName = CSS.escape(elem.localName);
|
||||||
|
|
||||||
// Use attributes if still no selector found.
|
// Use attributes if still no selector found.
|
||||||
// https://github.com/gorhill/uBlock/issues/1901
|
// https://github.com/gorhill/uBlock/issues/1901
|
||||||
|
Loading…
Reference in New Issue
Block a user