mirror of https://github.com/gorhill/uBlock.git
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
|
||||
const tagName = elem.localName;
|
||||
const tagName = CSS.escape(elem.localName);
|
||||
|
||||
// Use attributes if still no selector found.
|
||||
// https://github.com/gorhill/uBlock/issues/1901
|
||||
|
|
Loading…
Reference in New Issue