mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):
any number spaces can be placed between equal-sign and the value. patch from Ed Howland in [ruby-core:27345]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3fb4d27a8d
commit
cff7d0c80e
5 changed files with 20 additions and 4 deletions
|
@ -82,4 +82,14 @@ EOF
|
|||
ensure
|
||||
REXML::Document.entity_expansion_limit = 10000
|
||||
end
|
||||
|
||||
def test_xml_declaration_standalone
|
||||
bug2539 = '[ruby-core:27345]'
|
||||
doc = REXML::Document.new('<?xml version="1.0" standalone="no" ?>')
|
||||
assert_equal('no', doc.stand_alone?, bug2539)
|
||||
doc = REXML::Document.new('<?xml version="1.0" standalone= "no" ?>')
|
||||
assert_equal('no', doc.stand_alone?, bug2539)
|
||||
doc = REXML::Document.new('<?xml version="1.0" standalone= "no" ?>')
|
||||
assert_equal('no', doc.stand_alone?, bug2539)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue