[go: nahoru, domu]

headless: Dump entire document with --dump-dom

Change from using document.body.outerHTML to
document.documentElement.outerHTML and added the doctype when dumping
the document (--dump-dom) so that things like the head tag are
also produced.

BUG=752747

Change-Id: I2fc383bb68097c3f25ecd91494a3f92e8aacb545
Reviewed-on: https://chromium-review.googlesource.com/623731
Commit-Queue: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: Peter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#496282}
2 files changed