1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00

Do not treat selectors as "common" when char 0x09-0x0D are in attr value

This commit is contained in:
Raymond Hill 2024-02-17 20:25:41 -05:00
parent 0096b74d46
commit 9666eeb9cf
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -3118,7 +3118,7 @@ class ExtSelectorCompiler {
// context.
const cssIdentifier = '[A-Za-z_][\\w-]*';
const cssClassOrId = `[.#]${cssIdentifier}`;
const cssAttribute = `\\[${cssIdentifier}(?:[*^$]?="[^"\\]\\\\]+")?\\]`;
const cssAttribute = `\\[${cssIdentifier}(?:[*^$]?="[^"\\]\\\\\\x09-\\x0D]+")?\\]`;
const cssSimple =
'(?:' +
`${cssIdentifier}(?:${cssClassOrId})*(?:${cssAttribute})*` + '|' +