-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
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
querySelector not work for attr whose value contains colon #632
Comments
This is actually quite a big problem when function PasswordInput() {
const suffix = useId();
return (
<>
<label>
Password:
<input type="password" aria-describedby={`password-${suffix}`} />
</label>
<p id={`password-${suffix}`}>Should contain at least 18 characters.</p>
</>
);
} The result of that is something like
However, I'm not sure what's the best way to go about fixing this. Should the regex be made more complicated to make sure that an attribute selector is excluded? |
…ork-for-attr-whose-value-contains-colon #632@patch: Adds support for using an escape character in attribute q…
Thank you for reporting @ilyydy and @Pumpuli ! 🙂 I believe that the query selector for I have now added support for using an escape character, so that the You can read more about the release here: |
Describe the bug
querySelector not work for attr whose value contains colon. But in browser, it will be ok.
To Reproduce
Expected behavior
should find meta element
Screenshots
If applicable, add screenshots to help explain your problem.
Device:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: