File tree 2 files changed +15
-0
lines changed
ext/dom/tests/modern/html/parser
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ PHP NEWS
24
24
. Fixed bug GH-17481 (UTF-8 corruption in \Dom\HTMLDocument). (nielsdos)
25
25
. Fixed bug GH-17500 (Segfault with requesting nodeName on nameless doctype).
26
26
(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)
27
29
28
30
- Enchant:
29
31
. 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