Avoid creation of element, use document.documentElement instead
This commit is contained in:
parent
3e3b470009
commit
b35ebeb135
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue