ruby-changes:2102
From: ko1@a...
Date: 2 Oct 2007 10:46:05 +0900
Subject: [ruby-changes:2102] ser - Ruby:r13593 (trunk): r1364@bean: ser | 2007-10-01 21:24:31 -0400
ser 2007-10-02 10:45:55 +0900 (Tue, 02 Oct 2007) New Revision: 13593 Modified directories: trunk/lib/rexml/ Modified files: trunk/lib/rexml/document.rb Log: 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) Modified: trunk/lib/rexml/ http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml?r1=13593&r2=13592 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml/document.rb?r1=13593&r2=13592 Index: lib/rexml/document.rb =================================================================== --- lib/rexml/document.rb (revision 13592) +++ lib/rexml/document.rb (revision 13593) @@ -66,6 +66,7 @@ def add( child ) if child.kind_of? XMLDecl @children.unshift child + child.parent = self elsif child.kind_of? DocType # 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 Property changes on: lib/rexml ___________________________________________________________________ Name: svk:merge - 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/rexml-trunk/src/rexml:1287 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/rexml/trunk/src/rexml:1316 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/ruby-1.8.6:1304 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/ruby-trunk:1361 877f57f0-f5bd-0310-8c13-bb9e5bdefd87:/branches/3.1.7/src/rexml:1274 + 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/rexml-trunk/src/rexml:1287 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/rexml/trunk/src/rexml:1344 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/ruby-1.8.6:1304 3a3bbbf4-582e-0410-a78b-8bf2211dae1f:/local/ruby-trunk:1364 877f57f0-f5bd-0310-8c13-bb9e5bdefd87:/branches/3.1.7/src/rexml:1274 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml