Skip to content

Conversation

@krichprollsch
Copy link
Member

fix #1266

}

pub fn _write(self: *parser.Document, str: []const u8, page: *Page) !void {
if (!page.open) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can call _ = try _open(self, page) directly here (without the if check), since it does that if check for you. Seems better for write not to know about page.open if possible.

@krichprollsch krichprollsch merged commit 0c1c264 into main Dec 15, 2025
13 of 14 checks passed
@krichprollsch krichprollsch deleted the document-write branch December 15, 2025 08:03
@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: document.write is not a function

3 participants