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:
parent
a497f3a52d
commit
323d23c44b
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue