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
1 changed files with 1 additions and 1 deletions

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