mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
HTMLDocument: add body setter
This commit is contained in:
@@ -40,6 +40,11 @@ pub const HTMLDocument = struct {
|
||||
return try parser.documentHTMLBody(self);
|
||||
}
|
||||
|
||||
pub fn set_body(self: *parser.DocumentHTML, elt: ?*parser.ElementHTML) !?*parser.Body {
|
||||
try parser.documentHTMLSetBody(self, elt);
|
||||
return try get_body(self);
|
||||
}
|
||||
|
||||
// TODO: not implemented by libdom
|
||||
pub fn get_cookie(_: *parser.DocumentHTML) ![]const u8 {
|
||||
return error.NotImplemented;
|
||||
|
||||
Reference in New Issue
Block a user