Bug 937462. Eliminate all uses of cloneNode() and importNode() without the boolean "deep" arg that are not explicitly testing the behavior of that case from the tree, since the semantics of it will change. r=sicking

This commit is contained in:
Boris Zbarsky 2013-11-17 00:10:18 -05:00
parent 44a1bbf863
commit ee9a11f753
2 changed files with 2 additions and 2 deletions

View File

@ -2377,7 +2377,7 @@ LineResults.prototype = {
firstMatch = firstMatch || lineChunkNode;
}
if (lineLength >= GLOBAL_SEARCH_LINE_MAX_LENGTH) {
lineContentsNode.appendChild(this._ellipsis.cloneNode());
lineContentsNode.appendChild(this._ellipsis.cloneNode(true));
break;
}
}

View File

@ -104,7 +104,7 @@ function shuffle() {
form2.insertBefore(inputD, form2.firstChild)
// Clone an existing input
var inputE2 = framedoc.getElementById("e").cloneNode();
var inputE2 = framedoc.getElementById("e").cloneNode(true);
inputE2.setAttribute("id","e2");
testdiv.appendChild(inputE2);
}