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...

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/648345C8-8E3B-4F2A-A551-FFF3682E576B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to