DomNode->append_child() does not append attribute nodes
| Bug #23326 | DomNode->append_child() does not append attribute nodes | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2003-04-24 08:18 UTC | Modified: | 2003-09-09 15:49 UTC |
|
||||||||||
| From: | markus dot pfefferle at web dot de | Assigned: | ||||||||||||
| Status: | Closed | Package: | DOM XML related | |||||||||||
| PHP Version: | 4CVS-2003-04-24 (stable) | OS: | Windows 2000 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2003-04-24 08:18 UTC] markus dot pfefferle at web dot de
This works:
$document = domxml_new_doc('1.0');
$test = $document->append_child($document->create_element('test'));
$test->set_attribute('key', 'value');
echo htmlspecialchars($document->dump_mem(1));
This does not:
$document = domxml_new_doc('1.0');
$test = $document->append_child($document->create_element('test'));
$test->append_child($document->create_attribute('key', 'value'));
echo htmlspecialchars($document->dump_mem(1));
Also doesn't work on 4.3.1
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-04-25 03:59 UTC] chregu@php.net
[2003-04-25 04:16 UTC] markus dot pfefferle at web dot de
[2003-08-22 13:18 UTC] p0wer at bojko dot krakow dot pl
[2003-09-09 15:49 UTC] msopacua@php.net