No need to overengineer.

This commit is contained in:
Juriy Zaytsev 2009-05-30 02:26:56 -04:00 committed by Andrew Dupont
parent 1b20386115
commit fa4314aeea
1 changed files with 3 additions and 3 deletions

View File

@ -238,9 +238,9 @@ Element.Methods = {
if (SELECT_ELEMENT_INNERHTML_BUGGY || TABLE_ELEMENT_INNERHTML_BUGGY) {
if (tagName in Element._insertionTranslations.tags) {
$A(element.childNodes).each(function(node) {
element.removeChild(node);
});
while (element.firstChild) {
element.removeChild(element.firstChild);
}
Element._getContentFromAnonymousElement(tagName, content.stripScripts())
.each(function(node) {
element.appendChild(node)