1--TEST--
2Dom\HTMLDocument serialization of processing instruction
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9// Note: you can put > in a processing instruction element but that breaks (as expected)
10$dom->appendChild($dom->createProcessingInstruction("target", "foobaré\"&<\xc2\xa0"));
11echo $dom->saveHtml();
12
13?>
14--EXPECT--
15<?target foobaré"&< >
16