CDP: implement LP.getSemanticTree for native semantic DOM extraction

This commit is contained in:
Adrià Arrufat
2026-03-06 14:47:29 +09:00
parent 7322f90af4
commit 0f46277b1f
5 changed files with 266 additions and 2 deletions

View File

@@ -987,7 +987,7 @@ fn isIgnore(self: AXNode, page: *Page) bool {
return false;
}
fn getRole(self: AXNode) ![]const u8 {
pub fn getRole(self: AXNode) ![]const u8 {
if (self.role_attr) |role_value| {
// TODO the role can have multiple comma separated values.
return role_value;