Add before and after attribute to Tag node