Followup my Mattias on setting of attributes via Javascript
"Wolfgang Fahl" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
Mattias wrote:
>Date: 2008-01-08 06:49
>
>A minimal snippet:
><input type="text" id="foo" name="foo" myattr="bar" />
>...
>var field = document.getElementById("foo");
>var attributeValue = field.getAttribute("myattr");
>alert("The attribute value is " + attributeValue);
>field.setAttribute("myattr", "new_attribute_value");
>
in the svn repository you'll find revision 820 of
ScriptingTest.java now:
* $Id: ScriptingTest.java 820 2008-01-
10 11:36:06Z wolfgang_fahl $
it has the following dummy now:
/**
* test for Patch proposal 1653410
*
*/
public void xtestSetAttribute() {
/*
* Comment By: Mattias Jiderhamn (mattias78)
* Date: 2008-01-08 15:49
*
A minimal snippet:
<input type="text" id="foo" name="foo" myattr="bar" />
...
var field = document.getElementById("foo");
var attributeValue = field.getAttribute("myattr");
alert("The attribute value is " + attributeValue);
field.setAttribute("myattr", "new_attribute_value");
*/
}
>Let me know if I can be of further help.
That is a great offer - I appreciate it:
Would you please check out the trunk version from svn
and create a test that I could activate by removing the
x in the name and then use to proove that currently
setAttribute does not work as you expect it.
I'd then start with a first try to use the caching
approach I proposed on the mailinglist. Please join the
mailinglist if you are not part of it yet.
Wolfgang
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