svnno****@sourc*****
svnno****@sourc*****
2010年 2月 4日 (木) 23:37:31 JST
Revision: 1637 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1637 Author: dhrname Date: 2010-02-04 23:37:31 +0900 (Thu, 04 Feb 2010) Log Message: ----------- Modified Paths: -------------- branches/ufltima/core.js Modified: branches/ufltima/core.js =================================================================== --- branches/ufltima/core.js 2010-02-04 14:08:04 UTC (rev 1636) +++ branches/ufltima/core.js 2010-02-04 14:37:31 UTC (rev 1637) @@ -196,15 +196,11 @@ */ /*Document*/ DOMImplementation.createDocument = function( /*string*/ ns, qname, /*DocumentType*/ doctype) { try { - if (ns === "http://www.w3.org/svg/2000") { //名前空間がSVGに属しているのであれば、 - var s = new SVGDocument(); //SVGDocumentを作る(要svg.js) - } else { var s = new Document(); - } - s.documentElement = s.rootElement = s.createElementNS(ns,qname); //ルート要素を作る - s.implementation = this; - s.doctype = doctype; - return s; + s.documentElement = s.createElementNS(ns,qname); //ルート要素を作る + s.implementation = this; + s.doctype = doctype; + return s; } catch(e){alert(e.message);} };