From: PuYun <cl...@12...> - 2016-05-17 07:38:48
|
Hi, The following html shows "ok!" in browsers, but failed in htmlunit because of javascript error: <html> <head> <title>test</title> </head> <body> <div id="target">failed!</div> <script type="text/javascript"> var a = {}; a.prototype = { foo : foo, }; var container = { foo : function foo() { } }; var foo = container.foo; document.getElementById("target").textContent="ok!"; </script> </body> </html> PuYun |