mootools/mootools-core — Issue #2297: Element.get("href") for an anchor in IE7 returns location + hash
Author: DimitarChristoff
Created: 2012-02-16 18:25:43+00:00
State: open

This is not a new issue and may likely be an IE thing, but I found it during 1.4.5 testing and it's wrong.

http://jsfiddle.net/dimitar/cd2Am/

basically, an anchor element with a `href="#hash"` -> `el.get("href")` should return the `#hash`.

reload the element via ajax, rewriting the target innerHTML to virtually the same markup and in IE7, `el.get("href")` returns `window.location + "#hash` **AS THE PROPERTY VALUE**.