htmlunit: 'missing ) after formal parameters' with HTMX 1.9.10
I have HtmlUnit 3.9.0 tests that work with HTMX 1.9.9, but when I upgrade to HTMX 1.9.10, I this error:
2024-01-08T09:41:35.431+01:00 ERROR 4784 --- [TAP] [ main] o.h.j.DefaultJavaScriptErrorListener : Error during JavaScript execution
org.htmlunit.ScriptException: missing ) after formal parameters (http://localhost:35781/internal/assets/webjars/htmx.org/1.9.10/dist/htmx.min.js#1)
at org.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:1014) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.corejs.javascript.Context.call(Context.java:581) ~[htmlunit-core-js-3.9.0.jar:3.9.0]
at org.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:481) ~[htmlunit-core-js-3.9.0.jar:3.9.0]
at org.htmlunit.javascript.HtmlUnitContextFactory.callSecured(HtmlUnitContextFactory.java:347) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:844) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:810) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:113) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.HtmlPage.loadJavaScriptFromUrl(HtmlPage.java:1152) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:1024) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.ScriptElementSupport.executeScriptIfNeeded(ScriptElementSupport.java:194) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.ScriptElementSupport$1.execute(ScriptElementSupport.java:118) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.ScriptElementSupport.onAllChildrenAddedToPage(ScriptElementSupport.java:141) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:192) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:599) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:411) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.endElement(HtmlUnitNekoDOMBuilder.java:548) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1270) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1198) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.filters.DefaultFilter.endElement(DefaultFilter.java:201) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.filters.NamespaceBinder.endElement(NamespaceBinder.java:268) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2990) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1980) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.HTMLScanner.scanDocument(HTMLScanner.java:814) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:344) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.HTMLConfiguration.parse(HTMLConfiguration.java:302) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.cyberneko.xerces.parsers.XMLParser.parse(XMLParser.java:72) ~[neko-htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.parser.neko.HtmlUnitNekoDOMBuilder.parse(HtmlUnitNekoDOMBuilder.java:842) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.html.parser.neko.HtmlUnitNekoHtmlParser.parse(HtmlUnitNekoHtmlParser.java:202) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:308) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:227) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.WebClient.loadWebResponseInto(WebClient.java:671) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.WebClient.loadWebResponseInto(WebClient.java:573) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.WebClient.getPage(WebClient.java:491) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.WebClient.getPage(WebClient.java:398) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.WebClient.getPage(WebClient.java:536) ~[htmlunit-3.9.0.jar:3.9.0]
at org.htmlunit.WebClient.getPage(WebClient.java:518) ~[htmlunit-3.9.0.jar:3.9.0]
(...)
About this issue
- Original URL
- State: open
- Created 6 months ago
- Comments: 19 (10 by maintainers)
Commits related to this issue
- fix casing in name (see #706) — committed to HtmlUnit/htmlunit by rbri 6 months ago
@breun to finally solve this issue i have to enhance the js support.
At the moment i like to focus on https://github.com/HtmlUnit/htmlunit/issues/755 - this will solve the problem at all. But there is no release date set - hope to know more in one week or so…
Ok, will check this and if the page really works with 3.9.0 then i can fix that. But i’m on a workshop for the next days. Please be a bit patient…