mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
NEWS for GH-17485
Fixes GH-17485.
This commit is contained in:
parent
d0981864eb
commit
0b04061e71
2 changed files with 15 additions and 0 deletions
2
NEWS
2
NEWS
|
@ -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)
|
||||
|
|
13
ext/dom/tests/modern/html/parser/gh17485.phpt
Normal file
13
ext/dom/tests/modern/html/parser/gh17485.phpt
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue