summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibXML
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibXML')
-rw-r--r--Userland/Libraries/LibXML/Parser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibXML/Parser/Parser.cpp b/Userland/Libraries/LibXML/Parser/Parser.cpp
index f73a37fed2..4a6bce9614 100644
--- a/Userland/Libraries/LibXML/Parser/Parser.cpp
+++ b/Userland/Libraries/LibXML/Parser/Parser.cpp
@@ -74,7 +74,7 @@ void Parser::append_node(NonnullOwnPtr<Node> node)
m_entered_node->content.get<Node::Element>().children.append(move(node));
} else {
m_root_node = move(node);
- m_entered_node = m_root_node.ptr();
+ enter_node(*m_root_node);
}
}