1--TEST--
2Document::createElement() edge cases
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9try {
10    $dom->createElement('');
11} catch (DOMException $e) {
12    echo $e->getMessage(), "\n";
13}
14try {
15    $dom->createElement('$');
16} catch (DOMException $e) {
17    echo $e->getMessage(), "\n";
18}
19
20?>
21--EXPECT--
22Invalid Character Error
23Invalid Character Error
24