Skip to content

$.parseHTML() creates anchor elements with empty href property in Chrome #2965

@mgol

Description

@mgol

document.implementation.createHTMLDocument("")-created documents interpret the href property of anchor elements different in different browsers, e.g. in Chrome returning an empty string. This affects our jQuery.parseHTML. The createHTMLDocument usage has been backed out on 1.12-stable & 2.2-stable but 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions