Bugs item #730915, was opened at 2003-05-01 13:58
Message generated for change (Comment added) made by barnabycourt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=730915&group_id=47038
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 6
Submitted By: Barnaby Court (barnabycourt)
Assigned to: Nobody/Anonymous (nobody)
Summary: Javascript ECMA error on Document.createElement("INPUT")
Initial Comment:
Hi, I am getting an ECMA
exception "com.gargoylesoftware.htmlunit.ScriptExceptio
n: undefined is not a function" when I try to use the
javascript method document.createElement("INPUT"). A
definition of this mehtod can be found on the <a
href="http://www.mozilla.org/docs/dom/domref/dom_doc_
ref46.html"> mozilla site </a>.
----------------------------------------------------------------------
>Comment By: Barnaby Court (barnabycourt)
Date: 2003-06-19 09:34
Message:
Logged In: YES
user_id=591975
This bug was fixed with the simplification of the javascript
INPUT element to be handled by one class.
----------------------------------------------------------------------
Comment By: Barnaby Court (barnabycourt)
Date: 2003-05-22 14:50
Message:
Logged In: YES
user_id=591975
After looking through the HtmlUnit source it appears that
there is no simple way to support the javascript createElement
() call. The principal problem, given my current
understanding, is that Input elements can not be created
without knowing the type ahead of time. I am proposing that
a new version of the javascript.Host.Input element be created
that supports all the methods that are needed. Are there
other other major issues that I am missing? I need to have
support for this method to testing. If there is support for
making the changes necessary to support these 2 calls I
would be happy to do the groundwork.
I am a big fan of HTMLUnit but I need support for these 2
mehods. If support for this is not going to be made available I
need to know so I can find another product that supports this
now or will in the future.
----------------------------------------------------------------------
Comment By: Barnaby Court (barnabycourt)
Date: 2003-05-01 15:11
Message:
Logged In: YES
user_id=591975
I am immediately calling the form.appendChild(...) method
after creating the input element. After looking through
com.gargoylesoftware.htmlunit.javascript.host.Form.java I did
not see that method implemented either. If you have any
pointers on what would have to be done to implement these
methods I would be happy to help.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=730915&group_id=47038
|