I just tried switching my application to jQuery 3. I passed the test and everything worked as expected until I came to a piece of my application that used the "#" symbol in the selector. I have a jQuery part that looks like this:
var $existingFilter = $container.find('.filterFeedItem[data-component-type=#somefilter]');
Using jQuery 3, I get an error:
jquery-3.0.0.js:1529 Uncaught Error: Syntax error,
unrecognized expression: .filterFeedItem[data-component-type=#somefilter]
Does anyone know why jQuery can no longer parse a selector containing this character?
source
share