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

@ -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