From 8055bcc6f575fe7a22590b89ba5c526687b64158 Mon Sep 17 00:00:00 2001 From: qincheng Date: Tue, 18 Nov 2014 02:14:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- avalon.js | 6 ++++-- avalon.min.js | 21 ++++++++++----------- 2 files changed, 14 insertions(+), 13 deletions(-) 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,"