Ticket #12315

opacity 属性の指定が無視される不具合の修正
Open Date: 2008-04-09 01:06 Last Update: 2008-09-17 19:26

Reporter:
Owner:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
7
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

NAIBU.PaintColor.prototype.getAttribute を書き換えるこ
とで対応しました。

Internet Explorer の仕様で、いくつかの属性値が
element.getAttribute(name) では取得できません。
代わりに element.attributes[name].nodeValue のようにす
ると取得できます。
この変更により、opacity="0.5" のような指定が効くように
なります。

少し不安ですが、恐らく副作用は無いだろうと思います。

Ticket History (3/6 Histories)

2008-04-09 01:06 Updated by: revulo
  • File 2275: sie_getAttribute.patch is attached
2008-04-09 19:13 Updated by: dhrname
  • Owner Update from (None) to dhrname
  • Priority Update from 5 - Medium to 7
  • Resolution Update from None to Works For Me
Comment
Logged In: YES
user_id=32883

早速パッチを当ててみます。
attributesを使うことによる副作用については、私がネットで調査
してみましょう。
2008-04-09 21:37 Updated by: dhrname
Comment
Logged In: YES
user_id=32883

調査完了。
関連する資料は以下のとおりです。
http://tobielangel.com/2007/1/11/attribute-nightmare-in-ie
http://msdn2.microsoft.com/en-us/library/
ms537438(VS.85).aspx#
DOMの仕様に従えば、attributes[name]よりも
attributes.getNamedItem(name)の方がいいのです。しかし、IE8で
それ以前のバージョンと動作が異なる可能性もあるか
ら、getNamedItemを用いるのはやめておきます。

重要な不具合だと思いますので、バージョン0.14でこの修正を反映
させていきます。
2008-04-14 19:54 Updated by: dhrname
Comment
Logged In: YES
user_id=32883

どの仕様にも載っていない方法なので不安に思って、0.2alpha1に
パッチを当てました。
前のコメントを撤回します。ごめんなさい。
2008-08-25 20:42 Updated by: dhrname
  • Resolution Update from Works For Me to Fixed
2008-09-17 19:26 Updated by: dhrname
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2008-09-17 19:26

Attachment File List

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login