unspace.ca — XHTML gives us the ability to extend our markup with customized, semantically meaningful attributes. The battle between classes and attributes might be a holy war to some.. and unknown to most others. To clear things up, in this article I explain several examples and provide functions for working with your own custom attributes.
Jan 9, 2007 View in Crawl 4
bramusJan 10, 2007
Same here opinion here.Above that I was looking for this kind of behavior actually :)Kudos to Pete!
seanlernerJan 11, 2007
I'm honoured to give you my first digg.
leftistJan 14, 2007Submitter
Hey Conrad!I might be misunderstanding you, but the document.getElementsByAttribute does in fact take a second parameter. It's not a tag nodeName but the id of a node in the tree from which to start the recursion.I find I almost never start at BODY; generally it'll either be a SELECT or a TABLE/DIV/UL that has everything I'm looking for.
jimmyetherJan 15, 2007
Great article! Guess I better start playing with Prototype.
yogastoreJun 27, 2008
<a class="user" href="http://astore.amazon.com/holmes.tower.fan-20">http://astore.amazon.com/holmes.tower.fan-20</a><a class="user" href="http://astore.amazon.com/honeywell.tower.fan-20">http://astore.amazon.com/honeywell.tower.fan-20</a><a class="user" href="http://astore.amazon.com/10.cup.rice.cooker-20">http://astore.amazon.com/10.cup.rice.cooker-20</a><a class="user" href="http://astore.amazon.com/zojirushi.10.cup.rice.cooker-20">http://astore.amazon.com/zojirushi.10.cup.rice.coo ...</a><a class="user" href="http://astore.amazon.com/bug.zapper-20">http://astore.amazon.com/bug.zapper-20</a><a class="user" href="http://astore.amazon.com/rat.zapper-20">http://astore.amazon.com/rat.zapper-20</a><a class="user" href="http://astore.amazon.com/250gb.external.hard.drive-20">http://astore.amazon.com/250gb.external.hard.drive ...</a><a class="user" href="http://astore.amazon.com/500.gb.external.hard.drive-20">http://astore.amazon.com/500.gb.external.hard.driv ...</a><a class="user" href="http://astore.amazon.com/surfboard.cable.modem-20">http://astore.amazon.com/surfboard.cable.modem-20</a><a class="user" href="http://astore.amazon.com/wireless.cable.modem-20">http://astore.amazon.com/wireless.cable.modem-20</a>
yenta4shopSep 7, 2008
<a class="user" href="http://www.yenta4shop.co.uk/">http://www.yenta4shop.co.uk/</a><a class="user" href="http://astore.amazon.com/12.volt.battery.charger-20">http://astore.amazon.com/12.volt.battery.charger-2 ...</a><a class="user" href="http://astore.amazon.com/5.gallon.water.bottle-20">http://astore.amazon.com/5.gallon.water.bottle-20</a><a class="user" href="http://astore.amazon.com/aerobed.raised-20">http://astore.amazon.com/aerobed.raised-20</a><a class="user" href="http://astore.amazon.com/bug.zapper-20">http://astore.amazon.com/bug.zapper-20</a><a class="user" href="http://astore.amazon.com/flowtron.insect.killer-20">http://astore.amazon.com/flowtron.insect.killer-20</a><a class="user" href="http://astore.amazon.com/furniture.chaise.lounge-20">http://astore.amazon.com/furniture.chaise.lounge-2 ...</a><a class="user" href="http://astore.amazon.com/inflatable.bed-20">http://astore.amazon.com/inflatable.bed-20</a><a class="user" href="http://astore.amazon.com/steam.cleaner.mop-20">http://astore.amazon.com/steam.cleaner.mop-20</a>
gettaratNov 25, 2008
Great article! <a class="user" href="http://externalharddrivereviews.org/">http://externalharddrivereviews.org/</a>
nerrveSep 6, 2009
i just couldn't believe one could do such a thing until i saw this article. damn damn damn. wish i knw this earlierthanks