#317 ✓resolved
Rob Aldred

selenium label locator uses getAttribute('for') which does not work in IE 6/7

Reported by Rob Aldred | December 17th, 2009 @ 01:31 PM

locatedLabel.getAttribute('for') in label.js
returns null in IE 6 & 7 (IE8 untested)

after some searching it appears getting the for attribute is not supported with getAttribute in IE.
suggest using htmlFor

for info see:
* http://www.quirksmode.org/bugreports/archives/2005/09/getAttributef... * http://www.moddular.org/log/get-attribute-for * http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#I...

commit: http://github.com/raldred/webrat/commit/b4c03de2fbe58cc6e50cf671cf9...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages