1--TEST--
2Dom\HTMLDocument serialization escape attribute
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createFromString("<p></p>", LIBXML_NOERROR);
9$p = $dom->documentElement->firstChild->nextSibling->firstChild;
10$p->setAttribute("foo", "<bar>\"'&");
11echo $dom->saveHtml();
12
13?>
14--EXPECT--
15<html><head></head><body><p foo="<bar>&quot;'&amp;"></p></body></html>
16