Skip to content

Commit

Permalink
Fix -abp-has
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Feb 18, 2023
1 parent 62a63c6 commit b03cd36
Show file tree
Hide file tree
Showing 2 changed files with 601 additions and 84 deletions.
8 changes: 7 additions & 1 deletion src/syntax/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const selector = {
},
};

const selectorList = {
parse() {
return this.createSingleNodeList(this.SelectorList());
},
};

const mediaQueryList = {
parse() {
return this.createSingleNodeList(this.MediaQueryList());
Expand Down Expand Up @@ -319,7 +325,7 @@ const xpath = {
*/
const extendedCss = originalFork({
pseudo: {
"-abp-has": selector,
"-abp-has": selectorList,
"if-not": selector,
upward: numberOrSelector,
"nth-ancestor": number,
Expand Down
Loading

0 comments on commit b03cd36

Please sign in to comment.