From 323d23c44b58ab5f9d6ddd177d54d6fc7f1f4217 Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 31 Jan 2010 12:36:27 +0000 Subject: [PATCH] * lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when parent is specified, since Text.check may need doctype. partially revert r26518. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rexml/text.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c3730ac392..f7d97d30ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Jan 31 21:29:58 2010 Yusuke Endoh + + * 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 * vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969] diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index c01ab33590..5cef876c52 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -117,7 +117,7 @@ module REXML @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