Version: 2.0.6
var div = make("<div><a id='a1'></a><a id='a2'></a></div>") var a = htmx.find(div, 'a') htmx.closest(a, 'div').should.equal(div)