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 f20457c commit 22c6729Copy full SHA for 22c6729
src/browser/dom/document.zig
@@ -248,7 +248,8 @@ pub const Document = struct {
248
249
pub fn get_activeElement(doc: *parser.Document, page: *Page) !?ElementUnion {
250
const HTMLDocument = @import("../html/document.zig").HTMLDocument;
251
- const html_doc = try page.getOrCreateNodeWrapper(HTMLDocument, @ptrCast(doc));
+ const doc_elem = try parser.documentGetDocumentElement(doc);
252
+ const html_doc = try page.getOrCreateNodeWrapper(HTMLDocument, @ptrCast(doc_elem));
253
if (html_doc.active_element) |ae| {
254
return try Element.toInterface(ae);
255
}
0 commit comments