xref: /php-src/ext/dom/tests/modern/spec/Attr_name.phpt (revision 6e7adb3c)
1--TEST--
2DOMAttr::$name
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9$foo = $dom->appendChild($dom->createElement("foo"));
10$foo->setAttributeNS("http://example.com", "foo:bar", "baz");
11var_dump($foo->attributes[0]->name);
12
13?>
14--EXPECT--
15string(7) "foo:bar"
16