Skip to content

Commit

Permalink
Modify selector used to find specific field by id to use the input el…
Browse files Browse the repository at this point in the history
…ement with id attribute syntax rather than the CSS '#' selector syntax, which fails on ids containing special characters (such as ';' and ':').
  • Loading branch information
gmcelhanon committed Jan 10, 2018
1 parent e2dc053 commit 8ffa097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chromeipass/chromeipass.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ cipFields.setUniqueId = function(field) {
// yes, it should be, but there are many bad developers outside...
var fieldId = field.attr("id");
if(fieldId) {
var foundIds = cIPJQ("input#" + cipFields.prepareId(fieldId));
var foundIds = cIPJQ("input[id='" + fieldId + "']");
if(foundIds.length == 1) {
field.attr("data-cip-id", fieldId);
return;
Expand Down

0 comments on commit 8ffa097

Please sign in to comment.