1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  Fix DOM tests for upcoming libxml2 serializer changes
This commit is contained in:
Niels Dossche
2025-04-23 18:30:00 +02:00
2 changed files with 6 additions and 6 deletions

View File

@@ -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>

View File

@@ -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 &amp; world"></element>
"
string(9) "<b>hi</b>"
string(54) "<element attribute="&lt;b&gt;hi&lt;/b&gt;"></element>
string(%d) "<element attribute=%r("&lt;b&gt;hi&lt;\/b&gt;"|"<b>hi<\/b>")%r></element>
"
string(12) "quote "test""
string(45) "<element attribute='quote "test"'></element>
string(%d) "<element attribute=%r('quote "test"'|"quote &quot;test&quot;")%r></element>
"
string(12) "quote 'test'"
string(45) "<element attribute="quote 'test'"></element>