We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76ad89c commit e119c72Copy full SHA for e119c72
ext/dom/tests/modern/xml/Element_innerHTML_prefixed_writing.phpt
@@ -0,0 +1,13 @@
1
+--TEST--
2
+Test setting innerHTML on a prefixed element
3
+--EXTENSIONS--
4
+dom
5
+--FILE--
6
+<?php
7
+$dom = Dom\XMLDocument::createFromString('<x:root xmlns:x="urn:x"/>');
8
+$dom->documentElement->innerHTML = '<child><x:subchild/></child>';
9
+echo $dom->saveXML();
10
+?>
11
+--EXPECT--
12
+<?xml version="1.0" encoding="UTF-8"?>
13
+<x:root xmlns:x="urn:x"><child><x:subchild/></child></x:root>
0 commit comments