Skip to content

Commit 14a2312

Browse files
committed
add Document.hasFocus placeholder
1 parent 09be5e2 commit 14a2312

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/browser/dom/document.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

1919
const std = @import("std");
20+
const log = @import("../../log.zig");
2021

2122
const js = @import("../js/js.zig");
2223
const parser = @import("../netsurf.zig");
@@ -313,6 +314,11 @@ pub const Document = struct {
313314
const state = try page.getOrCreateNodeState(@ptrCast(@alignCast(self)));
314315
state.adopted_style_sheets = try sheets.persist();
315316
}
317+
318+
pub fn _hasFocus(_: *parser.Document) bool {
319+
log.debug(.web_api, "not implemented", .{ .feature = "Document hasFocus" });
320+
return true;
321+
}
316322
};
317323

318324
const testing = @import("../../testing.zig");

0 commit comments

Comments
 (0)