vis = style.getPropertyCSSValue("visibility"),
disp = style.getPropertyCSSValue("display"),
tts = tar._tar.style,
- tft = tar.firstChild._tars,
- ttt = tft[0].innerText.charAt(0), //あらかじめ初期化しておく
+ tft = tar.firstChild._tars, //空白のテキストノードの場合、tftがundefinedになる恐れがある
+ ttt = tft[0] ? tft[0].innerText.charAt(0) : [""], //あらかじめ初期化しておく
tfti;
if (color === "none"){
tts.color = "transparent";
tfti.parentNode.removeChild(tfti);
}
//以下でinnerTextやinnerHTMLを使うのは、IE6でエラーとなる可能性がある
- tft[0].replaceChild(_doc.createTextNode(ttt), tft[0].firstChild);
+ if (tft[0] && tft[0].replaceChild) {
+ tft[0].replaceChild(_doc.createTextNode(ttt), tft[0].firstChild);
+ }
ttt = void 0;
}
var isRect = true,
ae[j]._tars[l].style.display = di;
}
l = void 0;
- ++j;
+ ++j;
}
delete tar._cacheMatrix;
ae = isRect = evt = tar = style = tedeco = tpp = ttpc = style = color = cursor = disp = vis = ttps = backr = backrs = di = tft = jt = void 0;