1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-05 18:32:30 +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:
Raymond Hill 2021-03-04 06:19:44 -05:00
parent eba8379192
commit 9f063c717b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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