Last issue to get HtmlUnit to work?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Last issue to get HtmlUnit to work?

Rodney Gitzel
I submitted a patch today to the HtmlUnit folk which fixes a problem using the YUI library, and I am now able to run some simple tests against xhtml-hello!  :-)

BUT...  it requires a change to the OPS Javascript.  This might be an OPS issue, or might be an HtmlUnit issue, but in xforms.js, line 264, I have had to add the namespace in the call to getElementsByTagName():

    getElementByName: function(element, localName, namespace) {
        return element.getElementsByTagName(namespace+":"+localName);
    }};

The comment implies it may have been left out intentionally, but things *seem* fine with it in there.

Thoughts?

rodney

Reply | Threaded
Open this post in threaded view
|

Re: Last issue to get HtmlUnit to work?

Erik Bruchez
Administrator
Rodney,

Great news!

What version of Orbeon Forms are you using? We already made fixes to  
getElementsByTagName() a while ago, because Firefox 3 fixed a bug and  
implemented getElementsByTagName properly.

So you may want to give nightly builds a try.

-Erik

On Apr 29, 2008, at 3:42 PM, Rodney Gitzel wrote:

>
> I submitted a patch today to the HtmlUnit folk which fixes a problem  
> using
> the YUI library, and I am now able to run some simple tests against
> xhtml-hello!  :-)
>
> BUT...  it requires a change to the OPS Javascript.  This might be  
> an OPS
> issue, or might be an HtmlUnit issue, but in xforms.js, line 264, I  
> have had
> to add the namespace in the call to getElementsByTagName():
>
>    getElementByName: function(element, localName, namespace) {
>        return element.getElementsByTagName(namespace+":"+localName);
>    }};
>
> The comment implies it may have been left out intentionally, but  
> things
> *seem* fine with it in there.
>
> Thoughts?
>
> rodney
>
>
> --
> View this message in context: http://www.nabble.com/Last-issue-to-get-HtmlUnit-to-work--tp16972102p16972102.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws