mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Add a test for setting the innerHTML on a prefixed XML element (#15204)
This commit is contained in:
parent
76ad89ccff
commit
e119c72894
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
--TEST--
|
||||
Test setting innerHTML on a prefixed element
|
||||
--EXTENSIONS--
|
||||
dom
|
||||
--FILE--
|
||||
<?php
|
||||
$dom = Dom\XMLDocument::createFromString('<x:root xmlns:x="urn:x"/>');
|
||||
$dom->documentElement->innerHTML = '<child><x:subchild/></child>';
|
||||
echo $dom->saveXML();
|
||||
?>
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<x:root xmlns:x="urn:x"><child><x:subchild/></child></x:root>
|
Loading…
Add table
Add a link
Reference in a new issue