Closed NetheriteTree closed 4 years ago
@JeansouLiu can you use the unminified version so we can see what line the code is failing at?
A similar error just happened to me and it turned out to be because the html I was retrieving had an input with name="id"
. Can you confirm if you also have a similar element in the HTML that you are fetching from the server?
This is the logged exception I get using the unminified version:
Uncaught DOMException: Element.querySelector: 'FORM[id=[object HTMLInputElement]]' is not a valid selector htmx.js:377
This seems related, but if not I'll start a new issue.
@36864 @JeansouLiu can you guys try to reproduce the issue in the regression test I just pushed up:
https://github.com/bigskysoftware/htmx/commit/efd3ab85f0f921bca1fde539af65216df7657386
@JeansouLiu can you use the unminified version so we can see what line the code is failing at?
![]()
Perfect, fixed with a regression test with https://github.com/bigskysoftware/htmx/commit/19b933449b1af4d4589bee24ae201dbe0c8d374f
Will be out with the 0.1 release on Friday.
Thank you!
Perfect, fixed with a regression test with 19b9334
Will be out with the 0.1 release on Friday.
Thank you!
after updating to 0.05 the code above completely broke. it just redirect to the target page and do not have any error.
Perfect, fixed with a regression test with 19b9334 Will be out with the 0.1 release on Friday. Thank you!
after updating to 0.05 the code above completely broke. it just redirect to the target page and do not have any error.
Perfect, fixed with a regression test with 19b9334
Will be out with the 0.1 release on Friday.
Thank you!
It seems it is not triggered as there is nothing in the console
This is the error:
This is the html:
This error only happens on the first button of this page. And others work fine. Maybe the page is too large? And this is the full log: