$('foo:bar') // error: unmatched pseudo-class
Is there a workaround or can I escape the colon somehow? I have set xmlMode to true.
xmlMode
true
Escaping the colon with double backslashes will solve this problem.
$('foo\\:bar')
Most helpful comment
Escaping the colon with double backslashes will solve this problem.