Re: Java language binding
"Wolfgang Fahl" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
Mark Childerson wrote:
> I would like to see cloneNode() and XMLHttpRequest supported.
as an answer to my request about the support of:
> http://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html
I have added the test below for this feature and tried
what happens for the change of the HTMLElement interface
- both are in the svn trunc so we can simply uncomment
the interface spec with "extends Element" and go from
there.
// TODO activate the extends Element as
// in http://www.w3.org/TR/REC-DOM-Level-1/java-language-binding.html
//public interface HTMLElement extends Element,ScriptingEventHandler {
public interface HTMLElement extends ScriptingEventHandler {
/**
* test for cloneNode feature (asked for by Mark Childeson on 2008-04-01)
* @throws Exception
*/
public void testCloneNode() throws Exception {
if (HttpUnitOptions.DEFAULT_SCRIPT_ENGINE_FACTORY.equals(HttpUnitOptions.ORIGINAL_SCRIPTING_ENGINE_FACTORY)) {
return;
}
WebConversation wc=doTestJavaScript(
"dolly1=document.getElementById('Dolly');\n"+
"dolly2=dolly1.cloneNode(true);\n"+
"dolly1.firstChild.nodeValue += dolly2.firstChild.nodeValue;\n"+
"alert(dolly1.firsthChild.nodeValue);\n",
"<div id='Dolly'>Dolly </div>");
}
BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548,
Geschäftsführer: Wolfgang Fahl
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop