This commit is contained in:
carson 2020-06-16 16:46:19 -07:00
parent 504bd34ee4
commit efd3ab85f0

View File

@ -49,4 +49,12 @@ describe("Core htmx Regression Tests", function(){
form.innerHTML.should.equal("variable=")
});
it ('name=id doesnt cause an error, function()', function(){
this.server.respondWith("GET", "/test", "Foo<form><input name=\"id\"/></form>")
var div = make('<div hx-get="/test">Get It</div>')
div.click();
this.server.respond();
div.innerText.should.equal("Foo")
});
})