We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whitespace-only classNames (e.g. class=" ") are currently added with the pattern ".", causing the following error:
class=" "
Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': '.' is not a valid selector.
Here's the relevant bit of code in match.js:
if (attributeName === 'class') { const className = attributeValue.trim().replace(/\s+/g, '.') pattern = `.${className}` }
I see a few potential fixes:
[class=' ']
Happy to put a fix in if helpful, just not sure which is best
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Whitespace-only classNames (e.g.
class=" "
) are currently added with the pattern ".", causing the following error:Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': '.' is not a valid selector.
Here's the relevant bit of code in match.js:
I see a few potential fixes:
[class=' ']
instead of converting to dot versionHappy to put a fix in if helpful, just not sure which is best
The text was updated successfully, but these errors were encountered: