ruby-changes:14671
From: mame <ko1@a...>
Date: Sun, 31 Jan 2010 21:36:42 +0900 (JST)
Subject: [ruby-changes:14671] Ruby:r26523 (trunk): * lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when
mame 2010-01-31 21:36:27 +0900 (Sun, 31 Jan 2010) New Revision: 26523 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26523 Log: * lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when parent is specified, since Text.check may need doctype. partially revert r26518. Modified files: trunk/ChangeLog trunk/lib/rexml/text.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 26522) +++ ChangeLog (revision 26523) @@ -1,3 +1,9 @@ +Sun Jan 31 21:29:58 2010 Yusuke Endoh <mame@t...> + + * lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when + parent is specified, since Text.check may need doctype. partially + revert r26518. + Sun Jan 31 21:10:15 2010 Yusuke Endoh <mame@t...> * vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969] Index: lib/rexml/text.rb =================================================================== --- lib/rexml/text.rb (revision 26522) +++ lib/rexml/text.rb (revision 26523) @@ -117,7 +117,7 @@ @string.gsub!( /\r\n?/, "\n" ) - Text.check(@string, illegal, doctype) if @raw + Text.check(@string, illegal, doctype) if @raw and @parent end def parent= parent -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/