> @@ -360,7 +361,8 @@ def equal_pair(key, value)
>          "contains(concat(' ', @class, ' '), #{klass})"
>        elsif key == :label && should_use_label_element?
>          # we assume :label means a corresponding label element, not the 
> attribute
> -        "@id=//label[normalize-space()=#{XpathSupport.escape value}]/@for"
> +        text = "normalize-space()=#{XpathSupport.escape value}"
> +        "(@id=//label[#{text}]/@for or parent::label[#{text}])"

Opera works ok too. I can't check IE now, will try to install VMs tomorrow and 
check out.

---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watir-webdriver/pull/201/files#r3858360
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to