Ticket #11456 (closed bug: wontfix)
.html(htmlString) fails in IE when 1st char is space and a close div tag exists in the string
|Reported by:||phairow||Owned by:||phairow|
when using .html(htmlString), the innerHTML of the specified element will be set to empty string when the htmlString passed starts with a space and contains a dangling end div tag.
EX: jQuery("#content").html(" Hello</div>");
Here is the jsFiddle: http://jsfiddle.net/Wj2cQ/
Tested in IE8 with all versions of jQuery that are available through jsFiddle. This does not repro in any other browser that I tested which include current versions of Chrome, Firefox, Opera, Safari on both pc and mac.
It fails any time the string starts with a space and contains a dangling </div> anywhere in the string.
- Owner set to phairow
- Status changed from new to pending
- Priority changed from undecided to low
- Resolution set to wontfix
- Status changed from new to closed
- Component changed from unfiled to misc