[Sie-announce] SIEコード [2020] URI書き込みの際のスキームがdataである場合の対処について記述

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2010年 9月 26日 (日) 19:55:46 JST


Revision: 2020
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2020
Author:   dhrname
Date:     2010-09-26 19:55:46 +0900 (Sun, 26 Sep 2010)

Log Message:
-----------
URI書き込みの際のスキームがdataである場合の対処について記述

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-09-26 10:34:46 UTC (rev 2019)
+++ branches/06x/061/org/w3c/dom/svg.js	2010-09-26 10:55:46 UTC (rev 2020)
@@ -894,7 +894,9 @@
             tar.dispatchEvent(ev);
             ev = null;
             ele = null;
-          } else {
+          } else if (uri.indexOf("data:") > -1) {
+            tar._tar.src = uri;
+          } else if ((uri.indexOf("http:") > -1) || (uri.indexOf(".") === 0)){
             if (tar.localName === "image") {
               tar._tar.src = uri;
             }
@@ -4891,7 +4893,7 @@
 };
 function unsvgtovml() {
   try {
-    CSS2Properties = CSSValue = CSSPrimitiveValue = NAIBU.xmlhttp = Node = Event = NAIBU = stlog = STLog = document = null;
+    Element = SVGElement = Attr = NamedNodeMap = CSS2Properties = CSSValue = CSSPrimitiveValue = NAIBU.xmlhttp = Node = Event = NAIBU = stlog = STLog = document = null;
     Array = ActiveXObject = window = null;
   } catch(e) {}
 }




Sie-announce メーリングリストの案内
Zurück zum Archiv-Index