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

* 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
This commit is contained in:
mame 2010-01-31 12:36:27 +00:00
parent a497f3a52d
commit 323d23c44b
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sun Jan 31 21:29:58 2010 Yusuke Endoh <mame@tsg.ne.jp>
* 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@tsg.ne.jp> Sun Jan 31 21:10:15 2010 Yusuke Endoh <mame@tsg.ne.jp>
* vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969] * vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969]

View file

@ -117,7 +117,7 @@ module REXML
@string.gsub!( /\r\n?/, "\n" ) @string.gsub!( /\r\n?/, "\n" )
Text.check(@string, illegal, doctype) if @raw Text.check(@string, illegal, doctype) if @raw and @parent
end end
def parent= parent def parent= parent