diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-23 18:18:13 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-23 18:18:13 +0200 |
commit | 3cb50a4714b6836a1d32e383edc86b3557d861ea (patch) | |
tree | eac06743e9b1ed8a7643d9ee1dd7770495756d1b /Libraries/LibWeb/LayoutTreeModel.cpp | |
parent | 9d4cd565e37bc3549986f14f52cc1cca13e7c68c (diff) | |
download | serenity-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.cpp | 2 |
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); |