tmpvar/jsdom — pull request #397 by brianmcd (2012-02-09 17:48:22+00:00)
Title: Access NamedNodeMap items via property.

This adds support for looking up attributes like: element.attributes.id.

I can't find this behavior in the spec, but I've tested in FireFox and Chrome and they work this way. jQuery seems to rely on being able to do this to implement "delegate" (see [this zombie issue](https://github.com/assaf/zombie/issues/217) and the [relevant jQuery code](https://github.com/jquery/jquery/blob/1.7.1/src/event.js#L24)).

**Tests**
_Before_
TOTALS: 4/2484 failed; 99% success
TIME: 27554ms

_After_
TOTALS: 4/2485 failed; 99% success
TIME: 28226ms