mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibWeb: Serialize Accessible Name and Description for Accessibility Tree
These will get displayed in the DOM inspector.
This commit is contained in:
parent
da5c9189b2
commit
29d724d95c
3 changed files with 10 additions and 5 deletions
|
@ -2362,7 +2362,7 @@ DeprecatedString Document::dump_accessibility_tree_as_json()
|
|||
MUST(json.add("type"sv, "element"sv));
|
||||
MUST(json.add("role"sv, "document"sv));
|
||||
} else {
|
||||
accessibility_tree->serialize_tree_as_json(json);
|
||||
accessibility_tree->serialize_tree_as_json(json, *this);
|
||||
}
|
||||
|
||||
MUST(json.finish());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue