There is some code at http://stackoverflow.com/questions/2786538/need-to-escape-a-special-character-in-a-jquery-selector-string that would allow us to properly escape all attribute selectors, but I feel it would probably be a separate job to replace this behaviour across the whole module. Perhaps this could be a separate pull request if the devs feel this is necessary?