NEWS for GH-17485

Fixes GH-17485.
This commit is contained in:
Niels Dossche 2025-01-17 19:43:06 +01:00
parent d0981864eb
commit 0b04061e71
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5
2 changed files with 15 additions and 0 deletions

2
NEWS
View file

@ -24,6 +24,8 @@ PHP NEWS
. Fixed bug GH-17481 (UTF-8 corruption in \Dom\HTMLDocument). (nielsdos)
. Fixed bug GH-17500 (Segfault with requesting nodeName on nameless doctype).
(nielsdos)
. Fixed bug GH-17485 (upstream fix, Self-closing tag on void elements
shouldn't be a parse error/warning in \Dom\HTMLDocument). (lexborisov)
- Enchant:
. Fix crashes in enchant when passing null bytes. (nielsdos)

View file

@ -0,0 +1,13 @@
--TEST--
GH-17485 (Self-closing tag on void elements shouldn't be a parse error/warning in \Dom\HTMLDocument)
--EXTENSIONS--
dom
--FILE--
<?php
$Data = "<!DOCTYPE HTML>\n<br />\n<input />";
$Document = \Dom\HTMLDocument::createFromString( $Data );
echo $Document->saveHTML();
?>
--EXPECT--
<!DOCTYPE html><html><head></head><body><br>
<input></body></html>