this code means that setAttributeNS will never get called? Unless I'm missing something obvious here.