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 09be5e2 commit 14a2312Copy full SHA for 14a2312
src/browser/dom/document.zig
@@ -17,6 +17,7 @@
17
// along with this program. If not, see <https://www.gnu.org/licenses/>.
18
19
const std = @import("std");
20
+const log = @import("../../log.zig");
21
22
const js = @import("../js/js.zig");
23
const parser = @import("../netsurf.zig");
@@ -313,6 +314,11 @@ pub const Document = struct {
313
314
const state = try page.getOrCreateNodeState(@ptrCast(@alignCast(self)));
315
state.adopted_style_sheets = try sheets.persist();
316
}
317
+
318
+ pub fn _hasFocus(_: *parser.Document) bool {
319
+ log.debug(.web_api, "not implemented", .{ .feature = "Document hasFocus" });
320
+ return true;
321
+ }
322
};
323
324
const testing = @import("../../testing.zig");
0 commit comments