1--TEST--
2Dom\HTMLDocument serialization of comment
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9$dom->appendChild($dom->createComment("foobaré\"<>-&"));
10echo $dom->saveHtml();
11
12?>
13--EXPECT--
14<!--foobaré"<>-&-->
15