Skip to content

Commit 04c6916

Browse files
committed
Revert "Update src/browser/dom/document.zig"
This reverts commit 22c6729.
1 parent 22c6729 commit 04c6916

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/browser/dom/document.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ pub const Document = struct {
248248

249249
pub fn get_activeElement(doc: *parser.Document, page: *Page) !?ElementUnion {
250250
const HTMLDocument = @import("../html/document.zig").HTMLDocument;
251-
const doc_elem = try parser.documentGetDocumentElement(doc);
252-
const html_doc = try page.getOrCreateNodeWrapper(HTMLDocument, @ptrCast(doc_elem));
251+
const html_doc = try page.getOrCreateNodeWrapper(HTMLDocument, @ptrCast(doc));
253252
if (html_doc.active_element) |ae| {
254253
return try Element.toInterface(ae);
255254
}

0 commit comments

Comments
 (0)