Previous Message
Next Message

Re: [css-d] difference between class and id selectors

Sent by Philip Hoyt on 31 January 2002 08:08


> On Thursday, January 31, 2002, at 04:22 AM, Rijk van Geijtenbeek wrote:
>
> > The current browsers don't actually mind if you reuse an ID value on a
> > page for styling multiple elements, but it is unwise to rely on that
> > behavior.
>
> Except in the case of DOM programming where, in Netscape 6 for sure, 
> the browser registers the first element of the same id on the page and 
> ignores the rest. I think this is a pretty important distinction if you 
> think you might add some scripts to a page later -- it's important that 
> getElementById retrieves only one set of attributes etc.
Previous Message
Next Message

Possibly related: