1--TEST--
2Document::$implementation createHTMLDocument
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\XMLDocument::createEmpty();
9
10echo "---\n";
11
12echo $dom->implementation->createHTMLDocument()->saveXml(), "\n";
13
14echo "---\n";
15
16echo $dom->implementation->createHTMLDocument("")->saveXml(), "\n";
17
18echo "---\n";
19
20echo $dom->implementation->createHTMLDocument("my <title>")->saveXml(), "\n";
21
22?>
23--EXPECT--
24---
25<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
26<!DOCTYPE html>
27<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>
28---
29<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
30<!DOCTYPE html>
31<html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body></body></html>
32---
33<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
34<!DOCTYPE html>
35<html xmlns="http://www.w3.org/1999/xhtml"><head><title>my &lt;title&gt;</title></head><body></body></html>
36