summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/LayoutTreeModel.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/LayoutTreeModel.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/LayoutTreeModel.cpp')
-rw-r--r--Libraries/LibWeb/LayoutTreeModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/LayoutTreeModel.cpp b/Libraries/LibWeb/LayoutTreeModel.cpp
index 87dcfb4c30..6a3444d225 100644
--- a/Libraries/LibWeb/LayoutTreeModel.cpp
+++ b/Libraries/LibWeb/LayoutTreeModel.cpp
@@ -138,7 +138,7 @@ GUI::Variant LayoutTreeModel::data(const GUI::ModelIndex& index, Role role) cons
} else {
auto& element = to<Element>(*node.node());
builder.append('<');
- builder.append(element.tag_name());
+ builder.append(element.local_name());
element.for_each_attribute([&](auto& name, auto& value) {
builder.append(' ');
builder.append(name);