[whatwg] Section 2.7.2.1 (HTMLCollection) question

Ian Hickson ian at hixie.ch
Tue Jul 27 16:37:18 PDT 2010


On Sat, 3 Apr 2010, Perry Smith wrote:
> From [1]
> > The namedItem(key) method must return the first node in the collection that
> > matches the following requirements:
> > 
> > It is an a, applet, area, embed, form, frame, frameset, iframe, img, or
> > object element with a name attribute equal to key, or,
> > It is an element with an ID equal to key.
> 
> Should "equal" be clarified?  In particular, from 2.4.9, I got the idea that
> comparing names would be "compatibility caseless" at least in that instance.
> Is that also true here?  I don't see the term "valid hash-name reference" in
> this section so I don't think I missed something but I easily could have.

I've added a comment early in the spec clarifying that comparisons are 
case-sensitive unless otherwise specified.


> Also, off topic a little: should these questions be posted here or is it 
> more productive to use the form on the page?

Either works equally well.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list