Render element attributes in the order they were defined `attributes` uses a LinkedHashMap, so the ordering is stable with the input