I stumbled again about an old patched version of a library that is included in Jenkins (Jenkins Test Harness module): org.jenkins-ci.main:jenkins-test-harness-htmlunit:2.18-1 The release is from 2015, it does not work with modern JS frameworks. Is there a simple workaround to replace it with a newer version?
With the 2015 version I get the following error when jquery is loading:
EcmaError: lineNumber=[2] column=[0] lineSource=[<no source>] name=[TypeError] sourceName=[
https://code.jquery.com/jquery-3.3.1.min.js] message=[TypeError: Cannot find function createHTMLDocument in object [object DOMImplementation]. (
https://code.jquery.com/jquery-3.3.1.min.js#2)
]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function createHTMLDocument in object [object DOMImplementation]. (
https://code.jquery.com/jquery-3.3.1.min.js#2)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:865)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)
I can deactivate JS, this helps at least to prevent the error. But I’m not sure what else is missing though...