diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-05 21:08:12 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-05 21:08:12 +0000 |
commit | 40bc864003879046de3439fd08af43567a0c574c (patch) | |
tree | 3fa5917bcb5c371f24d1e3de1ca507659181070f /lib/rexml/text.rb | |
parent | 34fb9453488d00c6542a48e78294aceaee72c90b (diff) | |
download | ruby-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.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? |