$.parseHTML() creates anchor elements with empty href property in Chrome #2965
|
I'll just repeat my comment on the proposed fix: @gibson042's fix looks like the correct way to go about it. Based on the brief look I had at the specs, the default base URL is Also, if this is going to be a permanent fix it'd probably be a good idea to make sure a |
|
Reviewing the patched |
document.implementation.createHTMLDocument("")-created documents interpret thehrefproperty of anchor elements different in different browsers, e.g. in Chrome returning an empty string. This affects ourjQuery.parseHTML. ThecreateHTMLDocumentusage has been backed out on1.12-stable&2.2-stablebut we try to may make it work for 3.0.In #2941 (comment) @gibson042 suggested to create a
<base>element, setting it to the base of the current document.The original issue: 2941