summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Dump.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-07-23 18:18:13 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-23 18:18:13 +0200
commit3cb50a4714b6836a1d32e383edc86b3557d861ea (patch)
treeeac06743e9b1ed8a7643d9ee1dd7770495756d1b /Libraries/LibWeb/Dump.cpp
parent9d4cd565e37bc3549986f14f52cc1cca13e7c68c (diff)
downloadserenity-3cb50a4714b6836a1d32e383edc86b3557d861ea.zip
LibWeb: Rename Element::tag_name() => local_name()
To prepare for fully qualified tag names, let's call this local_name. Note that we still keep an Element::tag_name() around since that's what the JS bindings end up calling into for the Element.tagName property.
Diffstat (limited to 'Libraries/LibWeb/Dump.cpp')
-rw-r--r--Libraries/LibWeb/Dump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibWeb/Dump.cpp b/Libraries/LibWeb/Dump.cpp
index ce10f2a68b..1225027e50 100644
--- a/Libraries/LibWeb/Dump.cpp
+++ b/Libraries/LibWeb/Dump.cpp
@@ -51,7 +51,7 @@ void dump_tree(const Node& node)
if (is<Document>(node)) {
dbgprintf("*Document*\n");
} else if (is<Element>(node)) {
- dbgprintf("<%s", to<Element>(node).tag_name().characters());
+ dbgprintf("<%s", to<Element>(node).local_name().characters());
to<Element>(node).for_each_attribute([](auto& name, auto& value) {
dbgprintf(" %s=%s", name.characters(), value.characters());
});
@@ -88,7 +88,7 @@ void dump_tree(const LayoutNode& layout_node)
else if (is<Document>(layout_node.node()))
tag_name = "#document";
else if (is<Element>(layout_node.node()))
- tag_name = to<Element>(*layout_node.node()).tag_name();
+ tag_name = to<Element>(*layout_node.node()).local_name();
else
tag_name = "???";