Ticket #28049

Element::insertBeforeメソッドとappendChildメソッドとremoveChildの引数に要素以外を入れるとエラーとなる

Open Date: 2012-04-10 20:19 Last Update: 2012-05-06 19:28

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
(None)
Priority:
9 - Highest
Severity:
9 - Highest
Resolution:
Fixed
File:
None

Details

再現条件: ElementのinsertBeforeメソッドか、appendChildメソッドか、あるいは、removeChildメソッドの引数に、テキストノードなど、要素以外のノードを入力すると、例外が発生。 Win XP SPのIE8で確認。

補足事項はコメントで記します。

Ticket History (3/4 Histories)

2012-04-10 20:19 Updated by: dhrname
  • New Ticket "Element::insertBeforeメソッドとappendChildメソッドとremoveChildの引数に要素以外を入れるとエラーとなる" created
2012-04-10 20:21 Updated by: dhrname
  • Resolution Update from None to Accepted
Comment

不具合が発生するコードの例:

element.removeChild(element.ownerDocument.createTextNode("a"));

2012-04-11 21:42 Updated by: dhrname
  • Resolution Update from Accepted to Fixed
Comment

引数に要素ノードを前提としていたのが問題の原因となっていました。getElementsByTagNameNSメソッドをチェックなしで使ったことで、エラーが引き起こされたようです。

修正しました。 http://git.sourceforge.jp/view?p=sie/sie.git;a=commit;h=2ecf861d2e79a02a6ff50f941ce29cef4887c7f2

2012-05-06 19:28 Updated by: dhrname
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2012-05-06 19:28

Attachment File List

No attachments

Edit

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