svnno****@sourc*****
svnno****@sourc*****
2009年 10月 9日 (金) 22:17:52 JST
Revision: 1319 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1319 Author: dhrname Date: 2009-10-09 22:17:52 +0900 (Fri, 09 Oct 2009) Log Message: ----------- Modified Paths: -------------- trunk/svginhtml.js Modified: trunk/svginhtml.js =================================================================== --- trunk/svginhtml.js 2009-10-09 12:19:52 UTC (rev 1318) +++ trunk/svginhtml.js 2009-10-09 13:17:52 UTC (rev 1319) @@ -33,7 +33,7 @@ if (sc[i].getAttribute("type") === "text/svg") { source = sc[i].text.replace(/<svg([^>]*)>/g, '<script type="image/svg+xml" $1><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" $1>') .replace(/<\/svg>/g, "</svg></script>") - .replace(/\shref=/g, "xlnk:href=") + .replace(/\shref=/g, " xlink:href=") .replace(/<\/(body|html)>/g, ""); } } @@ -52,11 +52,10 @@ var source = ""; source = data.content.replace(/<svg([^>]*)>/g, '<script type="image/svg+xml" $1><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" $1>') .replace(/<\/svg>/g, "</svg></script>") - .replace(/\shref=/g, "xlnk:href=") + .replace(/\shref=/g, " xlink:href=") .replace(/<\/(body|html)>/g, ""); var n = source.indexOf("svginhtml.js"); - source = source.substring(n+25, source.length-1); - alert(source); + source = source.substring(n+24, source.length-1); document.getElementById("hogehoge").innerHTML = source; svgtovml(); }