Skip to content

JQuery html adding multiple copies of dom elements when using self closing tags #4681

Closed
@shard2001

Description

@shard2001

I've raised this as a bug on stack overflow, so there's more detail there

https://stackoverflow.com/questions/61366853/jquery-3-5-0-producing-odd-output-using-html

but in summary, when there's a self closing tag, jQuery 3.4.1 would pretty much just deal with it, now it results in DOM elements being duplicated a few times

I think the jsbin example is fairly self explanatory

https://jsbin.com/baretotepo/edit?html,js,output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions