IE6&7 Href Normalisation Bug

Problem occurs when IE (< 8) adds an anchor dynamically. It returns an unexpected absolute URL. This breaks both attribute retrieval, and selectors.

by malibu

JavaScript

$(document.body).html("<a href='?action=run'/>");
alert($("a").attr("href")); // expecting ?action=run
alert($("a[href^='?action']").length); // expecting 1