diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-25 18:49:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-25 18:49:29 +0100 |
commit | 5b8704322132d447eef42aded83ec3d1088ab9b1 (patch) | |
tree | b82adb1e2d2fc28a18ad69dc5ba75788470025c4 /Libraries/LibWeb/Dump.cpp | |
parent | a32f3b29a3df780f6739cceb5641cd9706dc3fb3 (diff) | |
download | serenity-5b8704322132d447eef42aded83ec3d1088ab9b1.zip |
LibWeb: Make dump_tree() look okay for DocumentFragments
Diffstat (limited to 'Libraries/LibWeb/Dump.cpp')
-rw-r--r-- | Libraries/LibWeb/Dump.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 <LibWeb/CSS/StyleSheet.h> #include <LibWeb/DOM/Comment.h> #include <LibWeb/DOM/Document.h> +#include <LibWeb/DOM/DocumentFragment.h> #include <LibWeb/DOM/DocumentType.h> #include <LibWeb/DOM/Element.h> #include <LibWeb/DOM/Text.h> @@ -59,6 +60,8 @@ void dump_tree(const Node& node) dbgprintf("<!DOCTYPE>\n"); } else if (is<Comment>(node)) { dbgprintf("<!--%s-->\n", to<Comment>(node).data().characters()); + } else if (is<DocumentFragment>(node)) { + dbgprintf("#document-fragment\n"); } ++indent; if (is<ParentNode>(node)) { |