diff options
-rw-r--r-- | Libraries/LibWeb/DOM/Node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Node.h b/Libraries/LibWeb/DOM/Node.h index 6d86a991da..43359af872 100644 --- a/Libraries/LibWeb/DOM/Node.h +++ b/Libraries/LibWeb/DOM/Node.h @@ -80,7 +80,7 @@ public: bool is_comment() const { return type() == NodeType::COMMENT_NODE; } bool is_character_data() const { return type() == NodeType::TEXT_NODE || type() == NodeType::COMMENT_NODE; } bool is_document_fragment() const { return type() == NodeType::DOCUMENT_FRAGMENT_NODE; } - bool is_parent_node() const { return is_element() || is_document(); } + bool is_parent_node() const { return is_element() || is_document() || is_document_fragment(); } virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const; |