script: Avoid an allocation when getting attribute data.

15% improvement in selector matching performance on the rainbow page.
auto merge of #1554 : pcwalton/servo/faster-attribute-comparison, r=SimonSapin

15% improvement in selector matching performance on the rainbow page.

r? @SimonSapin