Skip to content

🐛 Fix script tag nesting issue caused by LIBXML_HTML_NOIMPLIED#21

Merged
retlehs merged 1 commit intomainfrom
fix-script-tag-nesting
Feb 2, 2026
Merged

🐛 Fix script tag nesting issue caused by LIBXML_HTML_NOIMPLIED#21
retlehs merged 1 commit intomainfrom
fix-script-tag-nesting

Conversation

@retlehs
Copy link
Member

@retlehs retlehs commented Feb 2, 2026

Remove LIBXML_HTML_NOIMPLIED flag which has a known bug with HTML fragments containing multiple root-level siblings. Instead, explicitly wrap input in html/body tags and strip them on output.

Close #20
Ref #19

@retlehs retlehs requested a review from QWp6t February 2, 2026 16:41
@retlehs retlehs self-assigned this Feb 2, 2026
Copy link
Member

@QWp6t QWp6t left a comment

Choose a reason for hiding this comment

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

LGTM! :shipit:

@retlehs retlehs merged commit ee73656 into main Feb 2, 2026
2 checks passed
@retlehs retlehs deleted the fix-script-tag-nesting branch February 2, 2026 18:34
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.

wp_add_inline_script() is broken after update to 1.0.4

2 participants