1
Fork 0
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:
Jonah 2023-02-05 11:24:03 -06:00 committed by Linus Groh
parent da5c9189b2
commit 29d724d95c
3 changed files with 10 additions and 5 deletions

View file

@ -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());