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:
Andreas Kling 2023-11-02 14:30:00 +01:00
commit 6b580d68a3
Notes: sideshowbarker 2024-07-17 00:49:59 +09:00
8 changed files with 27 additions and 27 deletions

View file

@ -41,7 +41,7 @@ void AccessibilityTreeNode::serialize_tree_as_json(JsonObjectSerializer<StringBu
MUST(object.add("name"sv, name));
auto description = MUST(element->accessible_description(document));
MUST(object.add("description"sv, description));
MUST(object.add("id"sv, element->id()));
MUST(object.add("id"sv, element->unique_id()));
if (has_role)
MUST(object.add("role"sv, ARIA::role_name(*role)));