svnno****@sourc*****
svnno****@sourc*****
2010年 10月 1日 (金) 22:51:06 JST
Revision: 2034 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2034 Author: dhrname Date: 2010-10-01 22:51:06 +0900 (Fri, 01 Oct 2010) Log Message: ----------- Modified Paths: -------------- branches/06x/061/org/w3c/dom/svg.js Modified: branches/06x/061/org/w3c/dom/svg.js =================================================================== --- branches/06x/061/org/w3c/dom/svg.js 2010-10-01 13:16:05 UTC (rev 2033) +++ branches/06x/061/org/w3c/dom/svg.js 2010-10-01 13:51:06 UTC (rev 2034) @@ -3600,10 +3600,9 @@ var tod = tar.ownerDocument.documentElement; var tlen = tar.getComputedTextLength(), anchor = style.getPropertyValue("text-anchor"); for (var i=0, j=0, tli=tar.getNumberOfChars();i<tli;++i) { - if (ti) { - var p = tar.getStartPositionOfChar(i-j); + if (ti && (ti.nodeType === Node.TEXT_NODE)) { if (!!ti._tar) { - var sty = ti._tar[i].style; + var sty = ti._tar[i].style, p = tar.getStartPositionOfChar(i-j); sty.position = "absolute"; if (tar._isYokogaki) { if (anchor === "middle") {