1--TEST--
2Element::toggleAttribute() xmlns spec compliance
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9$container = $dom->appendChild($dom->createElement('container'));
10
11$container->toggleAttribute('hidden');
12$container->toggleAttribute('xmlns:foo');
13$container->toggleAttribute('xmlns:bar');
14$container->toggleAttribute('xmlns');
15
16echo $dom->saveHtml(), "\n";
17
18$container->toggleAttribute('hidden');
19$container->toggleAttribute('xmlns:foo');
20$container->toggleAttribute('xmlns:bar');
21$container->toggleAttribute('xmlns');
22
23echo $dom->saveHtml(), "\n";
24
25?>
26--EXPECT--
27<container hidden="" xmlns:foo="" xmlns:bar="" xmlns=""></container>
28<container></container>
29