This will be used by the jQuery BlockUI Plugin
Part of the Stacktrace:
EcmaError: lineNumber=[268] column=[0] lineSource=[null] name=[TypeError] sourceName=[http://localhost:8080/vienna/staticContent/wpdirect/js/jquery.blockUI.js] message=[TypeError: Cannot find function setExpression. (http://localhost:8080/vienna/staticContent/wpdirect/js/jquery.blockUI.js#268)]
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function setExpression. (http://localhost:8080/vienna/staticContent/wpdirect/js/jquery.blockUI.js#268)
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:511)
....
Logged In: YES
user_id=402164
Originator: NO
This is an IE specific feature. Link to documentation:
http://msdn2.microsoft.com/en-us/library/ms531196.aspx
Logged In: YES
user_id=1908425
Originator: YES
So that means that the Rhino Engine does not support this function ?
How can I suppress an error message from htmlunit ?
- add this function to the style section of JavaScriptConfiguration.xml and implement an empty function jsxFunction_setExpression in com.gargoylesoftware.htmlunit.javascript.host.Style ?
- any other ideas ?
Logged In: YES
user_id=950730
Originator: NO
This is an HtmlUnit issue, and is not Rhino related.
Adding an empty implementation (IE-specific) as you suggest would solve it.
A patch is appreciated, many thanks.
Logged In: YES
user_id=1908425
Originator: YES
Patch File with an empty implementation added.
File Added: htmlunit.patch
Patchfile for the Ticket above
Logged In: YES
user_id=950730
Originator: NO
setExpression/removeExpression apply also to HTMLElement.
Next time, please add unit tests in the patch.
Fixed in SVN, many thanks.