Menu

#529 function setExpression for Element style not supported

closed
None
5
2012-10-21
2007-10-08
anknuth
No

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

Discussion

  • Marc Guillemot

    Marc Guillemot - 2007-10-08

    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

     
  • anknuth

    anknuth - 2007-10-09

    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 ?

     
  • Ahmed Ashour

    Ahmed Ashour - 2007-10-09

    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.

     
  • anknuth

    anknuth - 2007-10-09

    Logged In: YES
    user_id=1908425
    Originator: YES

    Patch File with an empty implementation added.
    File Added: htmlunit.patch

     
  • anknuth

    anknuth - 2007-10-09

    Patchfile for the Ticket above

     
  • Ahmed Ashour

    Ahmed Ashour - 2007-10-11

    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.

     

Log in to post a comment.