webapi: add Node.baseURI accessor

This commit is contained in:
Pierre Tachoire
2025-12-22 15:57:00 +01:00
parent 7c755483b1
commit 7d47f8623a

View File

@@ -874,6 +874,11 @@ pub const JsApi = struct {
fn _toString(self: *const Node) []const u8 {
return self.className();
}
fn _baseURI(_: *Node, page: *const Page) []const u8 {
return page.url[0..];
}
pub const baseURI = bridge.accessor(_baseURI, null, .{});
};
pub const Build = struct {