From: dhrname Date: Fri, 30 Nov 2012 12:31:36 +0000 (+0900) Subject: Add a _baseURL property for the GetSVGDocument interface X-Git-Tag: v16beta~421 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=950497fa530373bb576a1f242cdf61a895e31d6d;p=sie%2Fsie.git Add a _baseURL property for the GetSVGDocument interface --- diff --git a/org/w3c/dom/svg.js b/org/w3c/dom/svg.js index c8348f9..febcadb 100644 --- a/org/w3c/dom/svg.js +++ b/org/w3c/dom/svg.js @@ -1718,7 +1718,9 @@ function _ca_() { } else { data = "src"; } - xmlhttp.open("GET", objei.getAttribute(data), true); + /*_baseURLプロパティはXlink言語の相対URIで使う*/ + this._baseURL = objei.getAttribute(data); + xmlhttp.open("GET", this._baseURL, true); objei.style.display = "none"; xmlhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); this.xmlhttp = xmlhttp; @@ -1775,6 +1777,7 @@ function _ca_() { this.xmlhttp.onreadystatechange = NAIBU.emptyFunction; return; } + s.URL = this._baseURL; s._iframe = ifr; //_iframeプロパティはSVGAElementでリンク置換のときに扱う oba.setAttribute("id","_NAIBU_outline"); _doc.body.appendChild(oba);