Skip to content

Commit dd0416e

Browse files
committed
fix: no nodeValue in createElement anymore
1 parent cfd3aa2 commit dd0416e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/phpmd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ Issues detected: 76
137137

138138
Issues detected: 8
139139

140-
Sat Jul 12 01:57:19 PM CEST 2025
140+
Sat Jul 12 02:18:18 PM CEST 2025

src/Delegator/HTMLDocumentDelegator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function createElement(string $qualifiedName, ?string $nodeValue = null):
101101
{
102102
$htmlElement = $this->delegated->createElement($qualifiedName);
103103
if ($nodeValue !== null) {
104-
$htmlElement->nodeValue = $nodeValue;
104+
$htmlElement->append($nodeValue);
105105
}
106106
return new HTMLElementDelegator($htmlElement);
107107
}

0 commit comments

Comments
 (0)