svnno****@sourc*****
svnno****@sourc*****
2010年 3月 7日 (日) 23:36:53 JST
Revision: 1705
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1705
Author: dhrname
Date: 2010-03-07 23:36:53 +0900 (Sun, 07 Mar 2010)
Log Message:
-----------
createDocumentメソッドの修正
Modified Paths:
--------------
branches/ufltima/core.js
Modified: branches/ufltima/core.js
===================================================================
--- branches/ufltima/core.js 2010-03-06 11:52:55 UTC (rev 1704)
+++ branches/ufltima/core.js 2010-03-07 14:36:53 UTC (rev 1705)
@@ -175,13 +175,13 @@
} else {
s = new Document();
}
- s.documentElement = s.createElementNS(ns,qname); //ルート要素を作る
s.implementation = this;
s.doctype = doctype;
+ s.documentElement = s.createElementNS(ns,qname); //ルート要素を作る
return s;
} catch(e){alert(e.message);}
},
- "http://www.w3.org/xmlns/1998": {}
+ "http://www.w3.org/2000/xmlns": {}
}
/* Node
@@ -887,8 +887,10 @@
}
if (namespaceURI) {
var ti = this.implementation;
- if (!!ti[namespaceURI] && !!ti[namespaceURI][localName]) { //もし、名前空間とローカル名によって、オブジェクトがあった場合
+ if (!!ti[namespaceURI]) {
+ if (!!ti[namespaceURI][localName]) { //もし、名前空間とローカル名によって、オブジェクトがあった場合
ele = new (ti[namespaceURI][localName]);
+ }
} else {
ele = new Element();
}