[prev in list] [next in list] [prev in thread] [next in thread]
List: htmlunit-develop
Subject: [HtmlUnit] [ htmlunit-Bugs-3006858 ] HtmlUnit executes javascript
From: "SourceForge.net" <noreply () sourceforge ! net>
Date: 2010-05-25 13:25:19
Message-ID: E1OGu8F-0003X2-Ic () sfs-web-1 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Bugs item #3006858, was opened at 2010-05-25 15:25
Message generated for change (Tracker Item Submitted) made by rbri
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=3006858&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: 2.7
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: RBRi (rbri)
Assigned to: Nobody/Anonymous (nobody)
Summary: HtmlUnit executes javascript in FF3 mode but FF does not
Initial Comment:
My (test) page contains this javascript:
<script type="text/javascript">
var evaluated=false;
var _span = document.createElement("span");
document.body.appendChild(_span);
var xmlString = "<html \
xmlns='http://www.w3.org/1999/xhtml'><sc"+"ript>evaluated=true;</sc"+"ript></html>"; \
var oDomDoc = (new DOMParser()).parseFromString(xmlString, "text/xml"); var \
_script=oDomDoc.getElementsByTagName("script")[0]; var importednode = \
window.document.importNode(_script, true); \
document.body.replaceChild(importednode,_span);
alert('evaluated ' + evaluated);
</script>
When opening in FF3 the var 'evaluated' is false. When i call the page from HtmlUnit \
in FF3 mode, evaluated is true (which means the dynamically constructed javascript is \
executed).
my browser is
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.8) Gecko/20100202 (CK-BBS) \
Firefox/3.5.8
(The code is part of the javascript used by RichFaces)
Thanks
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=3006858&group_id=47038
------------------------------------------------------------------------------
_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic