mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
dom/document: fix get_body
This commit is contained in:
@@ -20,9 +20,8 @@ pub const Document = struct {
|
||||
// JS funcs
|
||||
// --------
|
||||
|
||||
pub fn get_body(self: *parser.Document) ?*HTMLBodyElement {
|
||||
const b = parser.documentBody(self) orelse null;
|
||||
return @as(*HTMLBodyElement, @ptrCast(b));
|
||||
pub fn get_body(self: *parser.Document) ?*parser.Body {
|
||||
return parser.documentBody(self);
|
||||
}
|
||||
|
||||
pub fn _getElementById(self: *parser.Document, id: []const u8) ?NodeUnion {
|
||||
|
||||
Reference in New Issue
Block a user