mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
Initial work on integrating libcurl and making all http nonblocking
This commit is contained in:
@@ -406,8 +406,8 @@ pub const JsRunner = struct {
|
||||
.url = try page.url.toWebApi(page.arena),
|
||||
});
|
||||
|
||||
var html = std.io.fixedBufferStream(opts.html);
|
||||
try page.loadHTMLDoc(html.reader(), "UTF-8");
|
||||
const html_doc = try parser.documentHTMLParseFromStr(opts.html);
|
||||
try page.setDocument(html_doc);
|
||||
|
||||
return .{
|
||||
.app = app,
|
||||
|
||||
Reference in New Issue
Block a user