Skip to content

Commit 0b04061

Browse files
committed
NEWS for GH-17485
Fixes GH-17485.
1 parent d098186 commit 0b04061

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ PHP NEWS
2424
. Fixed bug GH-17481 (UTF-8 corruption in \Dom\HTMLDocument). (nielsdos)
2525
. Fixed bug GH-17500 (Segfault with requesting nodeName on nameless doctype).
2626
(nielsdos)
27+
. Fixed bug GH-17485 (upstream fix, Self-closing tag on void elements
28+
shouldn't be a parse error/warning in \Dom\HTMLDocument). (lexborisov)
2729

2830
- Enchant:
2931
. Fix crashes in enchant when passing null bytes. (nielsdos)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
GH-17485 (Self-closing tag on void elements shouldn't be a parse error/warning in \Dom\HTMLDocument)
3+
--EXTENSIONS--
4+
dom
5+
--FILE--
6+
<?php
7+
$Data = "<!DOCTYPE HTML>\n<br />\n<input />";
8+
$Document = \Dom\HTMLDocument::createFromString( $Data );
9+
echo $Document->saveHTML();
10+
?>
11+
--EXPECT--
12+
<!DOCTYPE html><html><head></head><body><br>
13+
<input></body></html>

0 commit comments

Comments
 (0)