We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
origin
protocol
1 parent 40522d8 commit 996837aCopy full SHA for 996837a
src/browser/html/elements.zig
@@ -273,13 +273,13 @@ pub const HTMLAnchorElement = struct {
273
}
274
275
pub fn get_origin(self: *parser.Anchor, page: *Page) ![]const u8 {
276
- var u = try url(self, page);
+ var u = url(self, page) catch return "";
277
defer u.destructor();
278
return u.get_origin(page);
279
280
281
pub fn get_protocol(self: *parser.Anchor, page: *Page) ![]const u8 {
282
283
284
285
return page.call_arena.dupe(u8, u.get_protocol());
0 commit comments