1--TEST--
2Dom\HTMLDocument::createFromString() - parser warning 01
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$html = file_get_contents(__DIR__."/parser_warning_01.html");
9$dom = Dom\HTMLDocument::createFromString($html);
10echo $dom->saveHtml(), "\n";
11
12?>
13--EXPECTF--
14Warning: Dom\HTMLDocument::createFromString(): tokenizer error missing-end-tag-name in Entity, line: 7, column: 11 in %s on line %d
15
16Warning: Dom\HTMLDocument::createFromString(): tree error unexpected-token-in-initial-mode in Entity, line: 1, column: 2-6 in %s on line %d
17<html><head><title>foo</title>
18</head><body><datalist id="fruits">
19    <option value="Apple">
20    </option><option value="Banana">
21    </option><option value="Pear">
22</option></datalist>
23<p>error</p></body></html>
24