I tried upgrading to HTMX 2.0.3, using HTMLUnit 4.5.0 and I hit the following error:
Exception class=[org.htmlunit.corejs.javascript.EvaluatorException]
org.htmlunit.ScriptException: syntax error (http://localhost:59068/internal/assets/webjars/htmx.org/2.0.3/dist/htmx.js#1467)
at org.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:903)
at org.htmlunit.corejs.javascript.Context.call(Context.java:590)
at org.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:487)
at org.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:316)
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:734)
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:109)
at org.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1124)
...
It seems to have an issue with the following line:
for (const preservedElt of [...pantry.children]) {
I can confirm that HTMX 2.0.2 does not have this issue and HTMLUnit 4.5.0 works fine with it.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too