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