[ htmlunit-Bugs-1587246 ] <script> tag asText should be empty

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ htmlunit-Bugs-1587246 ] <script> tag asText should be empty

SourceForge.net
Bugs item #1587246, was opened at 2006-10-30 15:34
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1587246&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Latest code in SVN
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Julien HENRY (henryju)
Assigned to: Nobody/Anonymous (nobody)
Summary: <script> tag asText should be empty

Initial Comment:
Hi,

I have a page with a simple script that use
document.write. When I call myPage.asText(), I'm
expecting to get only what was written by the
document.write(), but it seems that the content of the
<script> is also dumped.

I join a simple test case to reproduce the bug.

----------------------------------------------------------------------

>Comment By: Julien HENRY (henryju)
Date: 2006-10-30 17:00

Message:
Logged In: YES
user_id=1235926

Yes, that's exactly what I want. But currently,
<script>myFunction()</script>.asText() return "myFunction()"

----------------------------------------------------------------------

Comment By: Marc Guillemot (mguillem)
Date: 2006-10-30 16:01

Message:
Logged In: YES
user_id=402164

I would find it more logical if <script>.astText() always
returns an empty string. In a browser you don't see anything
of a script tag. If the contained script added some content
in the page, then the asText() of this content will show it.
Does it make sense for you?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1587246&group_id=47038

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop