From 4f0439617edfff2fa4dbc8b0c07a65bcf37cda53 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 17 Apr 2012 12:36:07 +0000 Subject: merge revision(s) 34419: [Backport #6307] * lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb: fix the default xml namespace URI validation. [ruby-dev:45169] [Bug #5956] Reported by Miho Hiramatsu. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/parsers/baseparser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index 612245fb73..95afd7add5 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