1--TEST--
2DOMElement::toggleAttribute() without a document
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$element = new DOMElement("container");
9$element->toggleAttribute('foo', true);
10
11$dom = new DOMDocument;
12$element = $dom->importNode($element, true);
13echo $dom->saveXML($element), "\n";
14
15?>
16--EXPECT--
17<container foo=""/>
18