setting attributes to null will now exclude them from the element