diff --git a/src/dom/dom.js b/src/dom/dom.js index ffc2330..19537b8 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -1545,7 +1545,7 @@ else if (Prototype.Browser.WebKit) { }; } -if ('outerHTML' in document.createElement('div')) { +if ('outerHTML' in document.documentElement) { Element.Methods.replace = function(element, content) { element = $(element);