mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00
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
This commit is contained in:
parent
e1a08e4130
commit
4f0439617e
4 changed files with 47 additions and 2 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue