Invoke the renameNode method to attempt to rename new Text, Comment, CDataSection, ProcessingInstruction and EntityReference nodes of a new Document. Check if a NOT_SUPPORTED_ERR is thrown.