diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-05 21:21:53 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-05 21:21:53 +0000 |
commit | 8287d55340d12cef324165287c55023080586d4c (patch) | |
tree | de08d2c9e1e54824d9c4a27bf70627f72ae3ff59 /lib/rexml | |
parent | 40bc864003879046de3439fd08af43567a0c574c (diff) | |
download | ruby-8287d55340d12cef324165287c55023080586d4c.tar.gz |
* lib/rexml/text.rb (REXML::Text.check): comment out
broken logic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/text.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 2e42a5d423..05d5341abb 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -159,10 +159,11 @@ module REXML else raise "Illegal character '#{$1}' in raw string \"#{string}\"" end - elsif @parent and $3 and !SUBSTITUTES.include?($1) - if !doctype or !doctype.entities.has_key?($3) - raise "Undeclared entity '#{$1}' in raw string \"#{string}\"" - end + # FIXME: below can't work but this needs API change. + # elsif @parent and $3 and !SUBSTITUTES.include?($1) + # if !doctype or !doctype.entities.has_key?($3) + # raise "Undeclared entity '#{$1}' in raw string \"#{string}\"" + # end end end end |