We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94a12d5 commit 7ff78f7Copy full SHA for 7ff78f7
ext/dom/tests/modern/xml/bug48339.phpt
@@ -0,0 +1,16 @@
1
+--TEST--
2
+Bug #48339 (DOMElement::setIdAttribute() throws 'Not Found Error' exception)
3
+--EXTENSIONS--
4
+dom
5
+--FILE--
6
+<?php
7
+$document = DOM\XMLDocument::createEmpty();
8
+$element = $document->createElement('test');
9
+$element = $document->appendChild($element);
10
+$element->setAttribute("xml:id", 1);
11
+$element->setIdAttribute("xml:id", TRUE);
12
+echo $document->saveXML(), "\n";
13
+?>
14
+--EXPECT--
15
+<?xml version="1.0" encoding="UTF-8"?>
16
+<test xml:id="1"/>
0 commit comments