summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp
index a2cc292614..099fe11e66 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Node.cpp
@@ -609,10 +609,9 @@ RefPtr<Document> Node::owner_document() const
void Node::serialize_tree_as_json(JsonObjectSerializer<StringBuilder>& object) const
{
object.add("name", node_name().view());
- object.add("internal_id", (size_t)this);
- if (is_document())
+ if (is_document()) {
object.add("type", "document");
- else if (is_element()) {
+ } else if (is_element()) {
object.add("type", "element");
auto element = static_cast<DOM::Element const*>(this);