svnno****@sourc*****
svnno****@sourc*****
2010年 12月 25日 (土) 20:45:06 JST
Revision: 2246
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2246
Author: dhrname
Date: 2010-12-25 20:45:06 +0900 (Sat, 25 Dec 2010)
Log Message:
-----------
SVGURIReferenceで正規表現に関するバグを修正
Modified Paths:
--------------
branches/06x/org/w3c/dom/svg.js
Modified: branches/06x/org/w3c/dom/svg.js
===================================================================
--- branches/06x/org/w3c/dom/svg.js 2010-12-25 11:11:25 UTC (rev 2245)
+++ branches/06x/org/w3c/dom/svg.js 2010-12-25 11:45:06 UTC (rev 2246)
@@ -960,7 +960,7 @@
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
var type = xmlhttp.getResponseHeader('Content-Type') || "text";
- if (/[text|xml|script]/.test(type)) { //ファイルがtext形式である場合
+ if ((type.indexOf("text") > -1) || (type.indexOf("xml") > -1) || (type.indexOf("script") > -1)) { //ファイルがtext形式である場合
/*responseXMLを使うと、時々、空のデータを返すことがあるため(原因は不明)、
*ここでは、responseTextを用いる
*/