On 2012-04-25 Dan Martin wrote:
Does anyone have ideas on how I can save the modified DOM tree, the one that displays on the web page?
Welcome to modern browser hell :-)
If you are saving it manually, use the "Web Developer 1.1.9" add-on in firefox and use its View Source -> View Generated Source option and then save from there.
Also, perl cpan WWW::Mechanize::Firefox should be able to save the post-DOM-changes version if you pause long enough or wait for the correct events (or trigger it manually). I use it extensively.