Subject: | $node->appendTextChild(...); - returns undef on success |
Wouldn't it be great that it would just return the appended node, so one could work with it and for example give it an attribute afterwards.
It would simply be some convenience, since it can be done through a more long windy route as well. This just occurred to me while going for the simple shortcut in the first place and then wanted to add more functionality afterwards.