svnno****@sourc*****
svnno****@sourc*****
2011年 10月 28日 (金) 22:43:03 JST
Revision: 3041 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=3041 Author: dhrname Date: 2011-10-28 22:43:02 +0900 (Fri, 28 Oct 2011) Log Message: ----------- Modified Paths: -------------- branches/08x/088/org/w3c/dom/css.js Modified: branches/08x/088/org/w3c/dom/css.js =================================================================== --- branches/08x/088/org/w3c/dom/css.js 2011-10-28 13:31:30 UTC (rev 3040) +++ branches/08x/088/org/w3c/dom/css.js 2011-10-28 13:43:02 UTC (rev 3041) @@ -762,17 +762,14 @@ s.getPropertyCSSValue = function( /*string*/ propertyName) { if (elt._runtimeStyle && elt._runtimeStyle[propertyName]) { var css = elt._runtimeStyle.getPropertyCSSValue(propertyName); - } - if (elt.style && elt.style[propertyName]) { + } else if (elt.style && elt.style[propertyName]) { css = elt.style.getPropertyCSSValue(propertyName); - } - if (!css && elt._rules) { + } else if (elt._rules) { //スタイルシートのルールを探す for (var i=0,eli=elt._rules.length;i<eli;++i) { elt._rules[i].style[propertyName] && (css = elt._rules[i].style.getPropertyCSSValue(propertyName)); } - } - if (!css && elt._attributeStyle && elt._attributeStyle[propertyName]) { + } else if (elt._attributeStyle && elt._attributeStyle[propertyName]) { //プレゼンテーション属性を探す css = elt._attributeStyle.getPropertyCSSValue(propertyName); }