[thelist] incorrect use of ID parameter?

Miles Tillinger miles.tillinger at intecgroup.com.au
Wed Feb 12 00:37:00 CST 2003


Yes it was 'easy peasy' in the end ;)  Although in some places I had used
<TD class="blah" id="blah-blah"> which caused a few headaches...  Live and
learn!

> -----Original Message-----
> From: Lachlan Cannon [mailto:luminosity at members.evolt.org]
> Sent: Wednesday, February 12, 2003 4:25 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] incorrect use of ID parameter?
>
> Miles Tillinger wrote:
> > Creating a CSS class for TD:    TD#CLASSNAME { font-weight: bold; }
> >
> > And applying it to a TD: <TD ID="CLASSNAME">hello world</TD>
> >
> > So when I run this through the validator it picks up a heap of duplicate
> ID
> > parameter values.  I haven't noticed any bad effects of this so far, it
> just
> > means that running my pages through the validator is a bit of a hassle!
> Am
> > I going to experience other problems doing things this way?
>
> If you need to use javascript's getElementById you will, similarly if
> you want to use the id as a link. Also, if you care about validation you
> should change it. Easy-peasy, anyway: search for 'id="classname"'
> replace with 'class="classname"'
> --
> Lach
> __________________________________________
> Web: http://illuminosity.net/
> E-mail: lach @ illuminosity.net
> MSN: luminosity @ members.evolt.org
> __________________________________________
>
>
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !



More information about the thelist mailing list