mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
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:
parent
44a1bbf863
commit
ee9a11f753
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user