From 5b8704322132d447eef42aded83ec3d1088ab9b1 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 25 Mar 2020 18:49:29 +0100 Subject: LibWeb: Make dump_tree() look okay for DocumentFragments --- Libraries/LibWeb/Dump.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Libraries/LibWeb/Dump.cpp') diff --git a/Libraries/LibWeb/Dump.cpp b/Libraries/LibWeb/Dump.cpp index 6f377b3187..2d85c02a2e 100644 --- a/Libraries/LibWeb/Dump.cpp +++ b/Libraries/LibWeb/Dump.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include @@ -59,6 +60,8 @@ void dump_tree(const Node& node) dbgprintf("\n"); } else if (is(node)) { dbgprintf("\n", to(node).data().characters()); + } else if (is(node)) { + dbgprintf("#document-fragment\n"); } ++indent; if (is(node)) { -- cgit v1.2.3