diff options
Diffstat (limited to 'test/attributes/hx-select.js')
-rw-r--r-- | test/attributes/hx-select.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/attributes/hx-select.js b/test/attributes/hx-select.js index 916571c1..c5868430 100644 --- a/test/attributes/hx-select.js +++ b/test/attributes/hx-select.js @@ -27,4 +27,14 @@ describe("BOOTSTRAP - htmx AJAX Tests", function(){ this.server.respond(); div.innerHTML.should.equal("<div id=\"d1\">foo</div>"); }); + + it('properly handles a full HTML document w/ data-* prefix', function() + { + var i = 1; + this.server.respondWith("GET", "/test", "<html><body><div id='d1'>foo</div><div id='d2'>bar</div></body></html>"); + var div = make('<div hx-get="/test" data-hx-select="#d1"></div>'); + div.click(); + this.server.respond(); + div.innerHTML.should.equal("<div id=\"d1\">foo</div>"); + }); }) |