[jQuery] href attribute in ajax generated pages on IE

[jQuery] href attribute in ajax generated pages on IE


Hi everyone,
Im defeat a great problem to read the href attribute on IE.
If I had something like this:
$(".somelink").click(function(){
var path = $(this).attr("href");
});
With this link: <a href="/test/">some test</a>
The both browsers return "/test/", but when the page is loaded via
ajax with the load method, on ie the result becomes "http://
www.domain.com/test/".
Anyone know how to retrieve the same result even in a dom generated
page on ie?
Thaks...