Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#12583 closed bug (fixed)


Reported by: [email protected] Owned by: [email protected]
Priority: low Milestone: 1.8.3
Component: ajax Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:


如下代码 $.ajax({

url: url, success: function(r, s){



}); 如果返回的内容r中没有封闭的htmlElement(即不符合w3c XHTML 规范)时,会解析错误 比如:返回的内容r中含有 <input name="input1">时不能解析, 而<input name="input1" />可以正确解析

Change History (4)

comment:1 Changed 10 years ago by sindresorhus

Component: unfiledajax
Priority: undecidedlow

English please.

Can you provide a jsfiddle testcase displaying the problem?


The following code $. Ajax ({

url: url, success: function (r, s) {

$ ('# Container'). Html (r);


}); Return the contents of r closed htmlElement (that does not comply with the the w3c XHTML specification) will parse error such as: the containing <input name="input1"> return the contents of r can not be resolved, and <input name = "input1" /> can be resolved correctly

comment:2 Changed 10 years ago by mikesherov

Owner: set to [email protected]
Status: newpending

comment:3 Changed 10 years ago by Richard Gibson

Resolution: fixed
Status: pendingclosed

Fix #12583: Don't ignore disabled property of select-one, close gh-932.

Changeset: 425d17de832d281c2577f8d6653030cef95907b5

comment:4 Changed 10 years ago by dmethvin

Milestone: None1.8.3
Note: See TracTickets for help on using tickets.