diff --git a/src/browser/webapi/Node.zig b/src/browser/webapi/Node.zig index 41357bcc..a206e3ce 100644 --- a/src/browser/webapi/Node.zig +++ b/src/browser/webapi/Node.zig @@ -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 {