From 92cecf79b428cfe1c8fc83a9b25ca5a99e867d83 Mon Sep 17 00:00:00 2001 From: kou Date: Thu, 2 Feb 2012 12:42:27 +0000 Subject: * lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb: fix the default xml namespace URI validation. Reported by Miho Hiramatsu. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/parsers/baseparser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rexml') diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index e4d89cd7d4..2df26b82f9 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -376,7 +376,7 @@ module REXML attrs.each { |a,b,c,d,e| if b == "xmlns" if c == "xml" - if d != "http://www.w3.org/XML/1998/namespace" + if e != "http://www.w3.org/XML/1998/namespace" msg = "The 'xml' prefix must not be bound to any other namespace "+ "(http://www.w3.org/TR/REC-xml-names/#ns-decl)" raise REXML::ParseException.new( msg, @source, self ) -- cgit v1.2.3