I was using the below code to select an element by data attribute value.
The HTML code is:
...
<li data-conversation-id="2"></li>
...
And JavaScript code:
$li = $conversations.find("[data-conversation-id='" + conversation_id + "']");
I've updated my template code and conversation-id is now set on the element via .data('conversation-id') in jQuery rather than as an inline attribute.
The .find() selector no longer works.