Skip to content
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

Unescaping in functional pseudo loses information #52

Open
huyz opened this issue Aug 28, 2011 · 1 comment
Open

Unescaping in functional pseudo loses information #52

huyz opened this issue Aug 28, 2011 · 1 comment

Comments

@huyz
Copy link

huyz commented Aug 28, 2011

Imagine if you have a functional pseudo with an escaped value, e.g. :contains("quoted\"value"), the parser will unescape the backslash and you end up with a value "quoted"value" where the double-quotes are indistinguishable. So information is lost and there is no way to go back to an equivalent string representation of the selector object.

@huyz
Copy link
Author

huyz commented Aug 28, 2011

There is also no way to have a closing parenthesis inside the value of a functional pseudo. None of the following works:
:contains(quoted)blah)
:contains("quoted)blah")
:contains("quoted)blah")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant