summaryrefslogtreecommitdiffstats
path: root/lib/rexml/attribute.rb
diff options
context:
space:
mode:
authorser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-02 01:46:32 +0000
committerser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-02 01:46:32 +0000
commitdc8b79ade4fafba84fa6a4ba57b0c04647ce11b9 (patch)
treed60e76c74e7bdbbd08bb27699dbe4c55af1e5944 /lib/rexml/attribute.rb
parentcc149b51d40edd6a7d64ff0c22b93fd027124e25 (diff)
downloadruby-dc8b79ade4fafba84fa6a4ba57b0c04647ce11b9.tar.gz
ruby-dc8b79ade4fafba84fa6a4ba57b0c04647ce11b9.tar.xz
ruby-dc8b79ade4fafba84fa6a4ba57b0c04647ce11b9.zip
r1366@bean: ser | 2007-10-01 21:24:33 -0400
r1352@bean: ser | 2007-07-29 11:33:07 -0400 Implements namespace validation in the baseparser. This means that, as per the XML namespace spec, unbound prefixes generate UndefinedNamespaceException. Also, as per the namespace spec, the 'xml' prefix must be bound to http://www.w3.org/XML/1998/namespace, and the 'xmlns' prefix must not be declared. in the XML. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/attribute.rb')
-rw-r--r--lib/rexml/attribute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb
index 029035d67..89c1ada36 100644
--- a/lib/rexml/attribute.rb
+++ b/lib/rexml/attribute.rb
@@ -50,7 +50,7 @@ module REXML
@element = first.element
end
elsif first.kind_of? String
- @element = parent if parent.kind_of? Element
+ @element = parent
self.name = first
@normalized = second.to_s
else