File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
ext/dom/tests/modern/html/parser Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments