mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:07:35 +00:00
LibWeb: Rename DOM::Node::id() to unique_id()
The old name was pretty confusing, since it had nothing to do with the common "id" content attribute. This makes way for using id() to return the "id" attribute instead. :^)
This commit is contained in:
parent
1030776f92
commit
6b580d68a3
8 changed files with 27 additions and 27 deletions
|
@ -995,7 +995,7 @@ void Element::serialize_pseudo_elements_as_json(JsonArraySerializer<StringBuilde
|
|||
auto object = MUST(children_array.add_object());
|
||||
MUST(object.add("name"sv, DeprecatedString::formatted("::{}", CSS::pseudo_element_name(static_cast<CSS::Selector::PseudoElement>(i)))));
|
||||
MUST(object.add("type"sv, "pseudo-element"));
|
||||
MUST(object.add("parent-id"sv, id()));
|
||||
MUST(object.add("parent-id"sv, unique_id()));
|
||||
MUST(object.add("pseudo-element"sv, i));
|
||||
MUST(object.finish());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue