Bug Tracker

Ticket #12583 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

在ie8中方法.html的bug

Reported by: bd_wyj@… Owned by: bd_wyj@…
Priority: low Milestone: 1.8.3
Component: ajax Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

如下代码 $.ajax({

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

$('#container').html(r);

}

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

Change History

comment:1 Changed 2 years ago by sindresorhus

  • Priority changed from undecided to low
  • Component changed from unfiled to ajax

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

comment:2 Changed 2 years ago by mikesherov

  • Owner set to bd_wyj@…
  • Status changed from new to pending

comment:3 Changed 2 years ago by Richard Gibson

  • Status changed from pending to closed
  • Resolution set to fixed

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

Changeset: 425d17de832d281c2577f8d6653030cef95907b5

comment:4 Changed 2 years ago by dmethvin

  • Milestone changed from None to 1.8.3
Note: See TracTickets for help on using tickets.