diff --git a/avalon.js b/avalon.js index 85a1a07ea..9ca2a208d 100644 --- a/avalon.js +++ b/avalon.js @@ -1694,9 +1694,10 @@ for (i = wrap[0]; i--; wrapper = wrapper.lastChild) { } if (!W3C) { //fix IE - for (els = avalon.slice(wrapper["getElementsByTagName"]("br")), i = 0; el = els[i++]; ) { + for (els = wrapper["getElementsByTagName"]("br"), i = 0; el = els[i++]; ) { if (el.className && el.className === "msNoScope") { el.parentNode.removeChild(el) + i-- } } for (els = wrapper.all, i = 0; el = els[i++]; ) { //fix VML @@ -1705,10 +1706,11 @@ } } if (tag === "tr") { - for (els = avalon.slice(wrapper.children), i = 0; el = els[i++]; ) { + for (els = wrapper.children, i = 0; el = els[i++]; ) { // IE6-8,如果动态生成tr元素,必须会在后面添加早已废弃caption的标签,其nodeName,innerHTML都为"" if (el.nodeName == "") { el.parentNode.removeChild(el) + i-- } } } diff --git a/avalon.min.js b/avalon.min.js index 133256655..038122c41 100644 --- a/avalon.min.js +++ b/avalon.min.js @@ -61,17 +61,16 @@ return{top:c.top+h-b,left:c.left+e-g}};var Pc=/^"],param:[1,""],col:[2,"","
"],legend:[1,"
"],option:[1,"