Skip to content

Commit

Permalink
LibWeb: Do not encode "internal_id" in DOM JSON
Browse files Browse the repository at this point in the history
This is now unused.
  • Loading branch information
trflynn89 authored and awesomekling committed Jul 1, 2021
1 parent 447ecc2 commit 1bbf3f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Userland/Libraries/LibWeb/DOM/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1bbf3f1

Please sign in to comment.