From b35ebeb1353928718a0faf912fc92c912c62d550 Mon Sep 17 00:00:00 2001 From: Juriy Zaytsev Date: Tue, 24 Mar 2009 23:43:08 -0400 Subject: [PATCH] Avoid creation of element, use document.documentElement instead --- src/dom/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);