1--TEST-- 2Template cloning 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7$dom = Dom\HTMLDocument::createFromString('<template>x</template>', LIBXML_NOERROR); 8$a = $dom->head->firstChild->cloneNode(false); 9echo $dom->saveXML($a), "\n"; 10echo $dom->saveHTML($a), "\n"; 11?> 12--EXPECT-- 13<template xmlns="http://www.w3.org/1999/xhtml"></template> 14<template></template> 15