`n` should be a string at this point, so `n.local` should always be undefined. That only gets set after the name is qualified using d3.ns.qualify.