This is definitely on the todo list but won't make it into
the 1.1 release. Supporting document.write() will require
some significant changes to the way pages are loaded so I
don't want to start on that until I have a stable 1.1
release completed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As a matter of interest, what I have is a frame in a web page
that completely re-writes itself (it is a navigation bar). It
creates the required stuff in a string, and then does this (in a
function):
Logged In: YES
user_id=46756
This is definitely on the todo list but won't make it into
the 1.1 release. Supporting document.write() will require
some significant changes to the way pages are loaded so I
don't want to start on that until I have a stable 1.1
release completed.
Logged In: YES
user_id=617819
Can I please support this New Feature?
As a matter of interest, what I have is a frame in a web page
that completely re-writes itself (it is a navigation bar). It
creates the required stuff in a string, and then does this (in a
function):
JavaScript code:
document.open ();
document.write (str);
document.close ();
This may be a special case which might be easier or much
worse than the other case, which looks like this (in the
middle of a page):
JavaScript code:
<td class="header-text">
<SCRIPT LANGUAGE="JavaScript">
document.write (aData["NAME"]);
</SCRIPT>
</td>
Hope this helps!
Logged In: YES
user_id=344432
I am trying to use HtmlUnit for our web tests, but
missing document.write() is a big bummer. I too hope
that this feature is added soon.
Thank you,
Hari
Logged In: YES
user_id=46756
The code now handles the two cases of document.write that I
am aware of
1) Appending to a page as it is being loaded
2) Creating a page in a frame via open(), write() and close()