--TEST-- DOMElement::toggleAttribute() without a document --EXTENSIONS-- dom --FILE-- toggleAttribute('foo', true); $dom = new DOMDocument; $element = $dom->importNode($element, true); echo $dom->saveXML($element), "\n"; ?> --EXPECT--