🌐 AI搜索 & 代理 主页
Skip to content

.html() fails if argument contains a comment with embedded start tag  #4124

@bosma4u

Description

@bosma4u

Description

Calling html() with an argument containing a html comment fails if the comment has a start tag embedded somewhere.
I don't care about the comment itself, but the non comment part of the argument should be processed.
This bug occurs at least in FireFox, Edge and Chrome (I suspect other browsers as well), in 3.x versions of jquery, not before.
A work-around is to embed the argument in a div.

Link to test case

https://jsfiddle.net/bosma4u/xpvt214o/397622/

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions