svnno****@sourc*****
svnno****@sourc*****
2009年 9月 22日 (火) 22:47:07 JST
Revision: 1276 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1276 Author: dhrname Date: 2009-09-22 22:47:07 +0900 (Tue, 22 Sep 2009) Log Message: ----------- SVGStyleElementオブジェクトの実装 Modified Paths: -------------- branches/DOM/org/w3c/dom/svg.js Modified: branches/DOM/org/w3c/dom/svg.js =================================================================== --- branches/DOM/org/w3c/dom/svg.js 2009-09-22 13:41:46 UTC (rev 1275) +++ branches/DOM/org/w3c/dom/svg.js 2009-09-22 13:47:07 UTC (rev 1276) @@ -2332,16 +2332,21 @@ var obje = document.getElementsByTagName("object"); //HTML内のobject要素を探し出して、メソッドを結びつける /*SVGDocument getSVGDocument = function(){} }; -function SVGStyleElement : SVGElement { - DOMString xmlspace; - // raises DOMException on setting - DOMString type; - // raises DOMException on setting - DOMString media; - // raises DOMException on setting - DOMString title; - // raises DOMException on setting - }; +/*SVGStyleElement + *style要素をあらわすオブジェクト + */ +function SVGStyleElement() { + SVGElement.apply(this, arguments); + //以下はそれぞれ、属性の値に対応している + /*DOMString*/ xmlspace; + /*DOMString*/ type = "text/css"; + /*DOMString*/ media; + /*DOMString*/ title; + return this; +}; +SVGStyleElement.constructor = SVGElement; +SVGStyleElement.prototype = new SVGElement(); + function SVGPoint { float x; // raises DOMException on setting