svnno****@sourc*****
svnno****@sourc*****
2009年 10月 11日 (日) 21:15:37 JST
Revision: 1321 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1321 Author: dhrname Date: 2009-10-11 21:15:37 +0900 (Sun, 11 Oct 2009) Log Message: ----------- xlinkに関する変換をsie.jsに移した Modified Paths: -------------- trunk/svginhtml.js Modified: trunk/svginhtml.js =================================================================== --- trunk/svginhtml.js 2009-10-09 14:09:59 UTC (rev 1320) +++ trunk/svginhtml.js 2009-10-11 12:15:37 UTC (rev 1321) @@ -33,7 +33,6 @@ 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, " xlink:href=") .replace(/<\/(body|html)>/g, ""); } } @@ -52,7 +51,6 @@ 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, " xlink:href=") .replace(/<\/(body|html)>/g, ""); var n = source.indexOf("svginhtml.js"); source = source.substring(n+24, source.length-1);