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

fix(swatch-renderer): Use $.escapeSelector in element selectors #5

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from

Conversation

jtomaszewski
Copy link

Otherwise, a URL like https://myshop.pl/tshirts?size=7%22 can result in a client-side error Syntax error, unrecognized expression: .swatch-attribute[data-attribute-code="size"] [data-option-id="7""] . This happens if the option ID includes a quotemark, which should be escaped before constructing a jQuery selector with it.

…es in selectors

Otherwise, a URL like https://myshop.pl/tshirts?size=7%22 can result in a client-side error `Syntax error, unrecognized expression: .swatch-attribute[data-attribute-code="size"] [data-option-id="7""]` . This happens if the option ID includes a quotemark, which should be escaped before constructing a jQuery selector with it.
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

Successfully merging this pull request may close these issues.

1 participant