diff options
Diffstat (limited to 'lib/rexml/text.rb')
-rw-r--r-- | lib/rexml/text.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 0f15f00c31..2e42a5d423 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -93,12 +93,11 @@ module REXML entity_filter=nil, illegal=NEEDS_A_SECOND_CHECK ) @raw = false + @parent = nil if parent super( parent ) @raw = parent.raw - else - @parent = nil end @raw = raw unless raw.nil? |