Skip to content

cleanup: factor parseHtml through parseHtmlWithContext#584

Merged
mna merged 1 commit into
PuerkitoBio:masterfrom
jvoisin:phwc
Jun 10, 2026
Merged

cleanup: factor parseHtml through parseHtmlWithContext#584
mna merged 1 commit into
PuerkitoBio:masterfrom
jvoisin:phwc

Conversation

@jvoisin

@jvoisin jvoisin commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

parseHtml and parseHtmlWithContext duplicated the ParseFragment call, the error check, and the panic message. parseHtml only differed by passing a synthetic ElementNode as the context.

This commit simply delegates parseHtml to parseHtmlWithContext.

parseHtml and parseHtmlWithContext duplicated the ParseFragment call,
the error check, and the panic message. parseHtml only differed by
passing a synthetic ElementNode as the context.

This commit simply delegates parseHtml to parseHtmlWithContext.
@mna mna merged commit dfcd45f into PuerkitoBio:master Jun 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants