Added fix for bug #1567 - uppercase nodeName test in .add().