Do I misread the HTML 4.01 spec (http://www.w3.org/TR/html401/index/attributes.html)? It says that ID is a "document-wide unique ID". The whole point of the ID tag is to have a unique ID, is it not? Doesn't having a non-unique ID defeat the purpose of having an ID altogether?
I agree that the "name" attribute is apparently not subject to the same restriction, though. ---Michael B. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cain, Mark Sent: October 23, 2006 10:20 AM To: [email protected] Subject: Re: [Wtr-general] Question from a newbie ---Michael B. wrote: >>Congratulations: you've found a bug. There should not be two text fields >>with the same ID and the same name on the same page. It is not a bug because internally index is used to make all page objects unique. It may be poor design and/or lazy programming--I'll give you that! ;-P --Mark Ask the developers to fix the bug. If you get pushback, tell them (or the project manager) that the page as current constructed interferes with testability. If you get pushback, then use (:index, [some number]) to locate the appropriate element. _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
