regression test for @ name support in attributes (Alpine.js issue)

This passes, but apparently there is an outstanding issue.
This commit is contained in:
carson 2020-09-10 08:22:31 -06:00
parent c3b1c63484
commit 7cc8f08377

View File

@ -73,4 +73,12 @@ describe("Core htmx Regression Tests", function(){
div.innerText.should.contain("Foo");
});
it ('@ symbol in attributes does not break requests', function(){
this.server.respondWith("GET", "/test", "<div id='d1' @foo='bar'>Foo</div>");
var div = make('<div hx-get="/test">Get It</div>');
div.click();
this.server.respond();
byId("d1").getAttribute('@foo').should.equal('bar');
});
})