Fixes issue with locate_tagged_element and xhtml documents.
Fixes issue with locate_tagged_element and xhtml documents.

I tested this on MacOs Firefox 10.6.5.

Given the following code (served with Content-Type: application/xhtml+xml):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<a href="http://www.foo.com/correct">lowercase link</a>
<A HREF="http://www.foo.com/incorrect">uppercase link</A>
</html>

I made sure that b.link(:text, "lowercase link").exist? returns true.

Note:
in this case, b.link(:text, "uppercase link").exists? returns false. I think this is the right behavior, but this can be revised.

jarib/watir,jarib/watir,watir/watir-classic,jarib/watir,watir/watir-classic,watir/watir-classic,watir/watir-classic