1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

r1364@bean: ser | 2007-10-01 21:24:31 -0400

r1344@bean:  ser | 2007-07-28 09:37:44 -0400
  Fixes ticket:99, and adds Henrik's unit test (with minor modifications)
 


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ser 2007-10-02 01:45:55 +00:00
parent efe8edf32c
commit a6c2c86b24

View file

@ -66,6 +66,7 @@ module REXML
def add( child ) def add( child )
if child.kind_of? XMLDecl if child.kind_of? XMLDecl
@children.unshift child @children.unshift child
child.parent = self
elsif child.kind_of? DocType elsif child.kind_of? DocType
# Find first Element or DocType node and insert the decl right # Find first Element or DocType node and insert the decl right
# before it. If there is no such node, just insert the child at the # before it. If there is no such node, just insert the child at the