With the scenario you've outlined we will end up doing two getElementById calls. We should be able to combine these into one.