mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
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.
This commit is contained in:
parent
9d4cd565e3
commit
3cb50a4714
34 changed files with 140 additions and 137 deletions
|
@ -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 = "???";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue