From 138e1bf55866e4a97c2ef192ffb4d6489ff7e498 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 26 Jun 2018 08:30:58 -0400 Subject: [PATCH] fix https://github.com/uBlockOrigin/uBlock-issues/issues/89 --- src/js/static-ext-filtering.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/static-ext-filtering.js b/src/js/static-ext-filtering.js index 0568f2ede..5d27d4a86 100644 --- a/src/js/static-ext-filtering.js +++ b/src/js/static-ext-filtering.js @@ -481,17 +481,20 @@ }; // https://github.com/chrisaljoudi/uBlock/issues/1004 - // Detect and report invalid CSS selectors. + // Detect and report invalid CSS selectors. // Discard new ABP's `-abp-properties` directive until it is // implemented (if ever). Unlikely, see: // https://github.com/gorhill/uBlock/issues/1752 // https://github.com/gorhill/uBlock/issues/2624 - // Convert Adguard's `-ext-has='...'` into uBO's `:has(...)`. + // Convert Adguard's `-ext-has='...'` into uBO's `:has(...)`. + + // https://github.com/uBlockOrigin/uBlock-issues/issues/89 + // Do not discard unknown pseudo-elements. api.compileSelector = (function() { - var reAfterBeforeSelector = /^(.+?)(::?after|::?before)$/, + var reAfterBeforeSelector = /^(.+?)(::?after|::?before|::[a-z-])$/, reStyleSelector = /^(.+?):style\((.+?)\)$/, reStyleBad = /url\([^)]+\)/, reExtendedSyntax = /\[-(?:abp|ext)-[a-z-]+=(['"])(?:.+?)(?:\1)\]/,