#12583 closed bug (fixed)
在ie8中方法.html的bug
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.8.3 |
Component: | ajax | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
如下代码 $.ajax({
url: url, success: function(r, s){
$('#container').html(r);
}
}); 如果返回的内容r中没有封闭的htmlElement(即不符合w3c XHTML 规范)时,会解析错误 比如:返回的内容r中含有 <input name="input1">时不能解析, 而<input name="input1" />可以正确解析
Change History (4)
comment:1 Changed 10 years ago by
Component: | unfiled → ajax |
---|---|
Priority: | undecided → low |
comment:2 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | pending → closed |
Fix #12583: Don't ignore disabled property of select-one, close gh-932.
Changeset: 425d17de832d281c2577f8d6653030cef95907b5
comment:4 Changed 10 years ago by
Milestone: | None → 1.8.3 |
---|
Note: See
TracTickets for help on using
tickets.
English please.
Can you provide a jsfiddle testcase displaying the problem?
Translation:
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