summaryrefslogtreecommitdiff
path: root/lib/rexml/attribute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/attribute.rb')
-rw-r--r--lib/rexml/attribute.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb
index a5a58055b8..a169148f32 100644
--- a/lib/rexml/attribute.rb
+++ b/lib/rexml/attribute.rb
@@ -101,20 +101,20 @@ module REXML
end
@unnormalized = nil
- @value = @normalized = Text::normalize( @value, doctype )
+ @normalized = Text::normalize( @value, doctype )
end
# Returns the UNNORMALIZED value of this attribute. That is, entities
# have been expanded to their values
def value
- @unnormalized if @unnormalized
+ return @unnormalized if @unnormalized
doctype = nil
if @element
doc = @element.document
doctype = doc.doctype if doc
end
@normalized = nil
- @value = @unnormalized = Text::unnormalize( @value, doctype )
+ @unnormalized = Text::unnormalize( @value, doctype )
end
# Returns a copy of this attribute