Skip to content

Commit fd0ced0

Browse files
committed
REXML::DocType: fix a bug that #clone doesn't copy external ID info
1 parent db36d5e commit fd0ced0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rexml/doctype.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def initialize( first, parent=nil )
5050
super( parent )
5151
@name = first.name
5252
@external_id = first.external_id
53+
@long_name = first.instance_variable_get(:@long_name)
54+
@uri = first.instance_variable_get(:@uri)
5355
elsif first.kind_of? Array
5456
super( parent )
5557
@name = first[0]

0 commit comments

Comments
 (0)