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
Add \\ for each element ID CSS selector that contains a dot (.).
\\
.
The current CSS selector engine (v0.51) cannot find the following element:
<input id="dotted.id" type="text" value="dotted" />
When given the following selector query (e.g.):
page.fill('#dotted.id', ...)
However, it can find the element if we query the element like so:
page.fill('#dotted\\.id', ...)
This is because the dot is interpreted as a class selector.
Automatically add \\ for each ID selector that contains a dot.
The content you are editing has changed. Please copy your edits and refresh the page.
No response
The text was updated successfully, but these errors were encountered:
I've changed my mind about this issue and will close it because automatically adding \\ can be problematic. It's because:
#my.yours
my
yours
A better strategy is to let users escape the dots in CSS queries themselves.
Sorry, something went wrong.
inancgumus
No branches or pull requests
What?
Add
\\
for each element ID CSS selector that contains a dot (.
).Why?
The current CSS selector engine (v0.51) cannot find the following element:
When given the following selector query (e.g.):
However, it can find the element if we query the element like so:
This is because the dot is interpreted as a class selector.
How?
Automatically add
\\
for each ID selector that contains a dot.Tasks
Tasks
Related PR(s)/Issue(s)
No response
The text was updated successfully, but these errors were encountered: