[Sie-announce] SIEコード [1633] createElementNSメソッドからSVGやXHTMLに関する記述を除去(イベントモジュールに移す)

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 2月 4日 (木) 21:43:48 JST


Revision: 1633
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1633
Author:   dhrname
Date:     2010-02-04 21:43:48 +0900 (Thu, 04 Feb 2010)

Log Message:
-----------
createElementNSメソッドからSVGやXHTMLに関する記述を除去(イベントモジュールに移す)

Modified Paths:
--------------
    branches/ufltima/core.js

Modified: branches/ufltima/core.js
===================================================================
--- branches/ufltima/core.js	2010-02-04 12:38:52 UTC (rev 1632)
+++ branches/ufltima/core.js	2010-02-04 12:43:48 UTC (rev 1633)
@@ -923,86 +923,7 @@
   if (!qualifiedName) {
     throw (new DOMException(DOMException.INVALID_CHARACTER_ERR));
   }
-  if (namespaceURI === "http://www.w3.org/2000/svg") {
-        switch (qualifiedName) {
-          case "g":
-            s = document.createElement("v:group"); q = false;
-          break;
-          case "linearGradient":
-            s = document.createElement("v:fill"); q = false;
-          break;
-          case "radialGradient":
-            s = document.createElement("v:fill"); q = false;
-          break;
-          case "stop":
-            s = document.createElement("stop"); q = false;
-          break;
-          case "a":
-            s = document.createElement("a");
-          break;
-          case "text":
-            s = document.createElement("div");
-          break;
-          case "tspan":
-            s = document.createElement("span");
-          break;
-          case "image":
-            s = document.createElement("v:image");
-          break;
-          case "path":
-          case "rect":
-          case "circle":
-          case "ellipse":
-          case "polyline":
-          case "polygon":
-          case "line":
-            s = document.createElement("v:shape");
-          break;
-          default:
-            s = null;
-          break;
-        }
-        switch (qualifiedName) {
-          case "path":
-            ele = this.path[this.path.length] = new STPath(s);
-          break;
-          case "rect":
-            ele = this.rect[this.rect.length] = new STRectElement(s);
-          break;
-          case "circle":
-            ele = this.circle[this.circle.length] = new STCircle(s);
-          break;
-          case "ellipse":
-            ele = this.ellipse[this.ellipse.length] = new STEllipse(s);
-          break;
-          case "polyline":
-            ele = this.polyline[this.polyline.length] = new STPolyline(s);
-          break;
-          case "polygon":
-            ele = this.polygon[this.polygon.length] = new STPolygon(s);
-          break;
-          case "line":
-            ele = this.line[this.line.length] = new STLine(s);
-          break;
-          case "a":
-            this.a[this.a.length] = new STAElement(s);
-          break;
-          case "text":
-            ele = this.text[this.text.length] = new STText(s);
-          break;
-          case "image":
-            ele = this.image[this.image.length] = new STImage(s);
-          break;
-          default:
-            ele = new SVGElement(); ele.tar = s;
-          break;
-    }
-  } else if (namespaceURI === "http://www.w3.org/1999/xhtml") {
-    ele = new Element();
-    ele.tar = document.createElement(qualifiedName);
-  } else {
-    ele = new Element();
-  }
+  ele = new Element();
   ele.namespaceURI = namespaceURI;
   ele.nodeName = ele.tagName = qualifiedName;
   if (qualifiedName.indexOf(":") !== -1){




Sie-announce メーリングリストの案内
Back to archive index