mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
CDP: implement LP.getSemanticTree for native semantic DOM extraction
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user