diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-07-01 12:32:31 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-01 19:19:46 +0200 |
commit | 1bbf3f1d09dd132be7db0f496c7d39fd7e9c8d72 (patch) | |
tree | 1c0d4f9e9bda3c67d00a8ae6a622955864ed6024 /Userland/Libraries | |
parent | 447ecc2155002b8804cfe54d3a2e8320fd04862d (diff) | |
download | serenity-1bbf3f1d09dd132be7db0f496c7d39fd7e9c8d72.zip |
LibWeb: Do not encode "internal_id" in DOM JSON
This is now unused.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Node.cpp | 5 |
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); |