mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
18 lines
314 B
PHP
18 lines
314 B
PHP
--TEST--
|
|
DOMElement::toggleAttribute() without a document
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
|
|
$element = new DOMElement("container");
|
|
$element->toggleAttribute('foo', true);
|
|
|
|
$dom = new DOMDocument;
|
|
$element = $dom->importNode($element, true);
|
|
echo $dom->saveXML($element), "\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
<container foo=""/>
|