Welcome Guest Search | Active Topics | Sign In | Register

WebBrowser view source containing executed javascript Options
Orhan Albay
Posted: Wednesday, January 1, 2014 7:36:41 PM
Rank: Newbie
Groups: Member

Joined: 12/16/2013
Posts: 5
Hi,

When I load a URL containing the following HTML and view source then I see output of document.write as "hello world" right after the script. I mean,

INPUT

<html>
<body>
<script>
document.write("hello world");
</script>
</body>
</html>

OUTPUT

<html><head></head><body>
<script>
document.write("hello world");
</script>hello world

</body></html>

This is not expected since Chrome displays only source HTML.
eo_support
Posted: Thursday, January 2, 2014 10:21:38 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

I believe this feature is by design. What it does is essentially the same as the "Copy HTML" feature in Chrome's HTML inspector. Since EO.WebBrowser did not implement extensive debug features like Chrome does, we felt it probably be more helpful to get the "current HTML" instead of the "initial HTML". Nevertheless, we understand that this is somewhat different than the traditional notion of "page source", so we will look into it to see if we can add the "initial page source" feature.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.