Skip to content

Commit 56e5a80

Browse files
lexborisovndossche
authored andcommitted
Fix GH-21041: Dom\HTMLDocument corrupts closing tags within scripts
1 parent 3053a03 commit 56e5a80

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ PHP NEWS
2020
- Date:
2121
. Update timelib to 2022.16. (Derick)
2222

23+
- DOM:
24+
. Fixed GH-21041 (Dom\HTMLDocument corrupts closing tags within scripts).
25+
(lexborisov)
26+
2327
- MbString:
2428
. Fixed bug GH-20833 (mb_str_pad() divide by zero if padding string is
2529
invalid in the encoding). (ndossche)

ext/dom/lexbor/lexbor/html/tokenizer/state_script.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ lxb_html_tokenizer_state_script_data_end_tag_name(lxb_html_tokenizer_t *tkz,
364364
if (lexbor_str_res_alpha_character[*data]
365365
== LEXBOR_STR_RES_SLIP)
366366
{
367+
lxb_html_tokenizer_state_append_data_m(tkz, data);
367368
goto anything_else;
368369
}
369370

0 commit comments

Comments
 (0)