Closed
Description
Given the following markup:
<div someAttr="foo">
<div someAttr="bar">
<h1>A title</h1>
</div>
</div>
Given the following content, I would expect "fooEl" to find me the first div element :
title { $('h1') }
fooEl { title.closest('[someAttr="foo"]') }
However, it returns nothing. Changing the attribute selector into a map does work, so the element is definitely present.
Metadata
Metadata
Assignees
Labels
No labels