Skip to content

Commit ead1ba6

Browse files
ediaminwestonruter
andauthored
Use setAttributeNode instead of appendChild to set attribute
Co-authored-by: Weston Ruter <westonruter@google.com>
1 parent ea50500 commit ead1ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Optimizer/Transformer/ServerSideRendering.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ private function ssrAmpAudio(Document $document, Element $element)
10791079
$audio = $document->createElement(Tag::AUDIO);
10801080
$controls = $document->createAttribute(Attribute::CONTROLS);
10811081

1082-
$audio->appendChild($controls);
1082+
$audio->setAttributeNode($controls);
10831083
$element->appendChild($audio);
10841084
}
10851085
}

0 commit comments

Comments
 (0)