1--TEST--
2Element renaming interaction with the HTML namespace 02
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = DOM\XMLDocument::createEmpty();
9$el = $dom->createElementNS("http://www.w3.org/1999/xhtml", "foo:bar");
10try {
11    $el->rename("urn:a", "foo:baz");
12} catch (DOMException $e) {
13    echo $e->getMessage(), "\n";
14}
15$el = $dom->createElementNS("urn:a", "foo:bar");
16try {
17    $el->rename("http://www.w3.org/1999/xhtml", "foo:baz");
18} catch (DOMException $e) {
19    echo $e->getMessage(), "\n";
20}
21
22?>
23--EXPECT--
24It is not possible to move an element out of the HTML namespace because the HTML namespace is tied to the HTMLElement class
25It is not possible to move an element into the HTML namespace because the HTML namespace is tied to the HTMLElement class
26