You can also use XMLSerializer to get the rendered HTML.
Something like this:
var myTable = document.getElementsByTagName("table")[0];
new XMLSerializer().serializeToString( myTable );
Pedro Simonetti.
2010/10/13 John J Barton <[email protected]>:
>
>
> On Oct 13, 4:21 am, xavi <[email protected]> wrote:
>> I'm trying to download the HTML code of a given Web page and then
>> store it in a local file. This Web page contains a table of values
>> that I would like to get. But, by downloading it as a normal "get
>> source code", I don't get the table, only HTML code with javascript
>> but without the table. However, by using Firebug tool, this table
>> appears in HTML. I would like to know which Firebug module is
>> responsible to get the HTML code of a given Web page. Thanks!
>
> The HTML is available via win.document.documentElement where win is
> the web page window. See
> https://developer.mozilla.org/en/Working_with_windows_in_chrome_code
> to get the web page window and
> https://developer.mozilla.org/en/DOM/document.documentElement
>
> jjb
>
> --
> You received this message because you are subscribed to the Google Groups
> "Firebug" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/firebug?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/firebug?hl=en.