mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix DOM tests for upcoming libxml2 serializer changes
DOM HTML serializer will be closer compliant to HTML5 in the next libxml2 version, so the tests need to be adapted. Ref: https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/309 Closes GH-18406.
This commit is contained in:
parent
041abec5b2
commit
d6e70e7053
2 changed files with 6 additions and 6 deletions
|
@ -87,7 +87,7 @@ echo "Checking toggled namespace:\n";
|
|||
var_dump($dom->documentElement->getAttribute('xmlns:anotheron'));
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
Invalid Character Error
|
||||
--- Selected attribute tests (HTML) ---
|
||||
bool(false)
|
||||
|
@ -95,10 +95,10 @@ bool(false)
|
|||
<html id="test"></html>
|
||||
bool(true)
|
||||
<!DOCTYPE HTML>
|
||||
<html id="test" selected></html>
|
||||
<html id="test" selected%r(="")?%r></html>
|
||||
bool(true)
|
||||
<!DOCTYPE HTML>
|
||||
<html id="test" selected></html>
|
||||
<html id="test" selected%r(="")?%r></html>
|
||||
bool(false)
|
||||
<!DOCTYPE HTML>
|
||||
<html id="test"></html>
|
||||
|
|
|
@ -55,7 +55,7 @@ $document->documentElement->textContent = "quote 'test'";
|
|||
var_dump($document->documentElement->textContent);
|
||||
var_dump($document->saveHTML());
|
||||
?>
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
-- Attribute tests --
|
||||
string(38) "<element attribute="value"></element>
|
||||
"
|
||||
|
@ -67,10 +67,10 @@ string(13) "hello & world"
|
|||
string(50) "<element attribute="hello & world"></element>
|
||||
"
|
||||
string(9) "<b>hi</b>"
|
||||
string(54) "<element attribute="<b>hi</b>"></element>
|
||||
string(%d) "<element attribute=%r("<b>hi<\/b>"|"<b>hi<\/b>")%r></element>
|
||||
"
|
||||
string(12) "quote "test""
|
||||
string(45) "<element attribute='quote "test"'></element>
|
||||
string(%d) "<element attribute=%r('quote "test"'|"quote "test"")%r></element>
|
||||
"
|
||||
string(12) "quote 'test'"
|
||||
string(45) "<element attribute="quote 'test'"></element>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue