This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
For consistency with all other dom collections. Maybe you were confused by the following asserts which passes for all dom collections? assert(collection.item(42) === null); assert(collection.namedItem('foobar') === null); assert(collection[42] === undefined); assert(collection['foobar'] === undefined);
I previously changed from null to undefined based on Boris Zbarsky's recommendation: http://lists.w3.org/Archives/Public/www-style/2012Aug/0871.html
Undid the undefined change. Now the collection methods return null on a miss. https://dvcs.w3.org/hg/csswg/rev/5c1cbb9d3749