We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cf6ab5 commit 2f9829dCopy full SHA for 2f9829d
src/browser/browser.zig
@@ -397,21 +397,11 @@ pub const Page = struct {
397
398
// A minimal reader for about:blank such that it can be parsed by loadHTMLDoc.
399
pub const AboutBlank = struct {
400
- const content =
401
- \\ <!DOCTYPE html>
402
- \\ <html>
403
- \\ <head>
404
- \\ <title></title>
405
- \\ </head>
406
- \\ <body>
407
- \\ </body>
408
- \\ </html>
409
- ;
410
done: bool = false,
411
pub fn next(self: *AboutBlank) !?[]const u8 {
412
if (self.done) return null;
413
self.done = true;
414
- return AboutBlank.content;
+ return ""; // The contents is blank
415
}
416
};
417
0 commit comments