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 selector for 'id' to support semi-colons #669

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

Conversation

gmcelhanon
Copy link

@gmcelhanon gmcelhanon commented Jan 10, 2018

The current preparedId function produces a jQuery selector that fails on ids containing a ;.

The failure I encountered was on an internal SSO page that was generating ids for controls using values like 34:2;a. ChromeIPass was generating errors in the console, and even though the prepareId function was escaping some characters, the semi-colon was not included in the set. Adding the semi-colon to the set of characters being escaped corrected the issue.

@gmcelhanon gmcelhanon force-pushed the fix-jquery-selector-for-ids-with-special-characters-fails branch from 8ffa097 to 0e54924 Compare January 10, 2018 18:15
@gmcelhanon gmcelhanon changed the title Fix selector for 'id' to correctly support special characters Fix selector for 'id' to support semi-colons Jan 10, 2018
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