_setElement no longer takes in attributes, update the corresponding comment