diff --git a/editor/ui/dialogs/content/EdReplace.js b/editor/ui/dialogs/content/EdReplace.js index ca0a03ab71..f581a2c578 100644 --- a/editor/ui/dialogs/content/EdReplace.js +++ b/editor/ui/dialogs/content/EdReplace.js @@ -252,7 +252,7 @@ function onReplaceAll() // We'll need a range for the whole document: var wholeDocRange = gEditor.document.createRange(); - var rootNode = gEditor.rootElement.QueryInterface(Ci.nsIDOMNode); + var rootNode = gEditor.rootElement; wholeDocRange.selectNodeContents(rootNode); // And start and end points: