1--TEST--
2Dom\HTMLDocument::createFromString() - parser warning 02
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$html = file_get_contents(__DIR__."/parser_warning_02.html");
9$dom = Dom\HTMLDocument::createFromString($html);
10echo $dom->saveHtml(), "\n";
11
12?>
13--EXPECTF--
14Warning: Dom\HTMLDocument::createFromString(): tokenizer error unexpected-null-character in Entity, line: 4, column: 11 in %s on line %d
15
16Warning: Dom\HTMLDocument::createFromString(): tokenizer error missing-whitespace-between-attributes in Entity, line: 5, column: 20 in %s on line %d
17
18Warning: Dom\HTMLDocument::createFromString(): tokenizer error incorrectly-opened-comment in Entity, line: 6, column: 11 in %s on line %d
19
20Warning: Dom\HTMLDocument::createFromString(): tokenizer error nested-comment in Entity, line: 7, column: 18 in %s on line %d
21
22Warning: Dom\HTMLDocument::createFromString(): tree error unexpected-closed-token in Entity, line: 4, column: 18 in %s on line %d
23
24Warning: Dom\HTMLDocument::createFromString(): tree error doctype-token-in-body-mode in Entity, line: 8, column: 11-17 in %s on line %d
25<!DOCTYPE html><html><head></head><body>
26        <p�>foo<p></p>
27        <p id="foo" class="bar">
28        <!--ELEMENT br EMPTY-->
29        <!-- <!-- nested --> --&gt;
30
31
32</p></p�></body></html>
33