mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
axnode: use writeString for content's name
This commit is contained in:
@@ -808,8 +808,7 @@ fn writeName(axnode: AXNode, w: anytype, page: *Page) !?AXSource {
|
||||
// write text content if exists.
|
||||
var buf = std.Io.Writer.Allocating.init(page.call_arena);
|
||||
try el.getInnerText(&buf.writer);
|
||||
const written = buf.written();
|
||||
try w.write(written);
|
||||
try writeString(buf.written(), w);
|
||||
return .contents;
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user