diff --git a/browser/devtools/debugger/debugger-panes.js b/browser/devtools/debugger/debugger-panes.js index 5be8ccfa5640..1af08b2c9db4 100644 --- a/browser/devtools/debugger/debugger-panes.js +++ b/browser/devtools/debugger/debugger-panes.js @@ -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; } } diff --git a/content/html/content/test/forms/test_restore_form_elements.html b/content/html/content/test/forms/test_restore_form_elements.html index 786887ebf5b7..d92c5c7e9ad6 100644 --- a/content/html/content/test/forms/test_restore_form_elements.html +++ b/content/html/content/test/forms/test_restore_form_elements.html @@ -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); }