mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-16 16:28:58 +00:00
_open does the page.open test directly
This commit is contained in:
@@ -341,9 +341,8 @@ pub const Document = struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn _write(self: *parser.Document, str: []const u8, page: *Page) !void {
|
pub fn _write(self: *parser.Document, str: []const u8, page: *Page) !void {
|
||||||
if (!page.open) {
|
_ = try _open(self, page);
|
||||||
_ = try _open(self, page);
|
|
||||||
}
|
|
||||||
const document = parser.documentHTMLToDocument(page.window.document);
|
const document = parser.documentHTMLToDocument(page.window.document);
|
||||||
const fragment = try parser.documentParseFragmentFromStr(document, str);
|
const fragment = try parser.documentParseFragmentFromStr(document, str);
|
||||||
const fragment_node = parser.documentFragmentToNode(fragment);
|
const fragment_node = parser.documentFragmentToNode(fragment);
|
||||||
|
|||||||
Reference in New Issue
Block a user