Small change to getNodeAttributes.