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.
1 parent d7069df commit 341f572Copy full SHA for 341f572
src/netsurf/netsurf.zig
@@ -2264,3 +2264,15 @@ pub fn documentHTMLGetCurrentScript(doc: *DocumentHTML) !?*Script {
2264
if (elem == null) return null;
2265
return @ptrCast(elem.?);
2266
}
2267
+
2268
+pub fn documentHTMLSetLocation(doc: *DocumentHTML, location: ?*anyopaque) !void {
2269
+ const err = documentHTMLVtable(doc).set_location.?(doc, location);
2270
+ try DOMErr(err);
2271
+}
2272
2273
+pub fn documentHTMLGetLocation(doc: *DocumentHTML) !?*anyopaque {
2274
+ var loc: ?*anyopaque = undefined;
2275
+ const err = documentHTMLVtable(doc).get_location.?(doc, &loc);
2276
2277
+ return loc;
2278
0 commit comments