Skip to content

Commit 8bec57a

Browse files
committed
maint(core utils): safeClone - document which versions of IE are affected.
1 parent 97ca0b1 commit 8bec57a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/utils.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const _MS_PER_DAY = 1000 * 60 * 60 * 24; // Milliseconds per day.
55

66
$.fn.safeClone = function () {
77
var $clone = this.clone();
8-
// IE BUG : Placeholder text becomes actual value after deep clone on textarea
8+
// IE 9-11 BUG : Placeholder text becomes actual value after deep clone on textarea
99
// https://connect.microsoft.com/IE/feedback/details/781612/placeholder-text-becomes-actual-value-after-deep-clone-on-textarea
10+
// Ref:
11+
// https://github.com/Patternslib/Patterns/issues/412
12+
// https://github.com/Patternslib/Patterns/pull/410
1013
if (window.document.documentMode) {
1114
$clone.findInclusive(":input[placeholder]").each(function (i, item) {
1215
var $item = $(item);

0 commit comments

Comments
 (0)