Avoid mixing up local name and name when creating attributes.
auto merge of #1459 : Ms2ger/servo/attr-new, r=jdm