Download src/php/php-src/ext/dom/tests/modern/xml/bug48339.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/tests/modern/xml/bug48339.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dom/tests/modern/xml/bug48339.phpt
-
curl -L -o bug48339.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dom/tests/modern/xml/bug48339.phpt
438 Bytes
| --TEST-- | |
| Bug #48339 (DOMElement::setIdAttribute() throws 'Not Found Error' exception) | |
| --EXTENSIONS-- | |
| dom | |
| --FILE-- | |
| $document = Dom\XMLDocument::createEmpty(); | |
| $element = $document->createElement('test'); | |
| $element = $document->appendChild($element); | |
| $element->setAttribute("xml:id", 1); | |
| $element->setIdAttribute("xml:id", TRUE); | |
| echo $document->saveXml(), "\n"; | |
| --EXPECT-- | |
| xml version="1.0" encoding="UTF-8" | |
| <test xml:id="1"/> | |