aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rexml/text.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-05 21:08:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-05 21:08:12 +0000
commit40bc864003879046de3439fd08af43567a0c574c (patch)
tree3fa5917bcb5c371f24d1e3de1ca507659181070f /lib/rexml/text.rb
parent34fb9453488d00c6542a48e78294aceaee72c90b (diff)
downloadruby-40bc864003879046de3439fd08af43567a0c574c.tar.gz
* lib/rexml/parsers/baseparser.rb (LETTER, DIGIT):
always use POSIX charclass. * lib/rexml/parsers/baseparser.rb (NAMECHAR): remove duplicated range. * lib/rexml/xmltokens.rb (NCNAME_STR, NAMECHAR): ditto. * lib/rexml/parsers/xpathparser.rb (PathExpr): ditto. * lib/rexml/text.rb (REXML::Text#initialize): initialize @parent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/text.rb')
-rw-r--r--lib/rexml/text.rb3
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?