Project

General

Profile

Actions

Backport #3551

closed

REXML::Document#add uses undefined method 'kind_of'

Added by hasari (Hiro Asari) over 13 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
[ruby-dev:41847]

Description

=begin
明らかに kind_of? の間違いです。1.9では直っています。

$ svn diff
Index: lib/rexml/document.rb

--- lib/rexml/document.rb (revision 28587)
+++ lib/rexml/document.rb (working copy)
@@ -78,7 +78,7 @@
x.kind_of?(Element) || x.kind_of?(DocType)
}
if @children[ insert_before_index ] # Not null = not end of list

  •      if @children[ insert_before_index ].kind_of DocType
    
  •      if @children[ insert_before_index ].kind_of? DocType
           @children[ insert_before_index ] = child
         else
           @children[ index_before_index-1, 0 ] = child
    

=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 13 years ago

=begin
r26513
=end

Actions #2

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Project changed from Ruby 1.8 to Backport187
  • Description updated (diff)
  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0