OSDN Git Service

Add a _baseURL property for the GetSVGDocument interface
authordhrname <dhrname@users.sourceforge.jp>
Fri, 30 Nov 2012 12:31:36 +0000 (21:31 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Fri, 30 Nov 2012 12:31:36 +0000 (21:31 +0900)
org/w3c/dom/svg.js

index c8348f9..febcadb 100644 (file)
@@ -1718,7 +1718,9 @@ function _ca_() {
     } else {\r
       data = "src";\r
     }\r
-    xmlhttp.open("GET", objei.getAttribute(data), true);\r
+    /*_baseURLプロパティはXlink言語の相対URIで使う*/\r
+    this._baseURL = objei.getAttribute(data);\r
+    xmlhttp.open("GET", this._baseURL, true);\r
     objei.style.display = "none";\r
     xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");\r
     this.xmlhttp = xmlhttp;\r
@@ -1775,6 +1777,7 @@ function _ca_() {
       this.xmlhttp.onreadystatechange = NAIBU.emptyFunction;\r
       return;\r
     }\r
+    s.URL = this._baseURL;\r
     s._iframe = ifr;                     //_iframeプロパティはSVGAElementでリンク置換のときに扱う\r
     oba.setAttribute("id","_NAIBU_outline");\r
     _doc.body.appendChild(oba);\r