Avoid creation of element, use document.documentElement instead

This commit is contained in:
Juriy Zaytsev 2009-03-24 23:43:08 -04:00
parent 3e3b470009
commit b35ebeb135
1 changed files with 1 additions and 1 deletions

View File

@ -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);