aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml/test_document.rb
Commit message (Collapse)AuthorAgeFilesLines
* * lib/rexml/security.rb (REXML::Security): create.kou2013-02-271-5/+5
| | | | | | | | | | | | * lib/rexml/rexml.rb: move entity_expansion_limit and entity_expansion_text_limit accessors to ... * lib/rexml/security.rb: ... here. * lib/rexml/document.rb: use REXML::Security. * lib/rexml/text.rb: use REXML::Security. * test/rexml/test_document.rb: use REXML::Security. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/output.rb (REXML::Output): Don't output BOM in middlekou2012-11-031-0/+19
| | | | | | | | of the output string. * test/rexml/test_document.rb: Add a test for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Fix tests that expect encoding namekou2012-11-031-6/+4
| | | | | | | isn't normalized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): Document encodingkou2012-11-031-8/+18
| | | | | | | | | | | | option. Now different encoding between XML file's encoding and XML declaration's encodiong is support. [Feature #4872] (work in progress) * lib/rexml/xmldecl.rb (REXML::XMLDecl#write): Always use XMLDecl's encoding. * test/rexml/test_document.rb: Update tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Remove needless indent.kou2012-10-281-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Add tests for parsing XML encodedkou2012-10-281-0/+20
| | | | | | | by UTF-8 with BOM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb: Fix a bug that UTF-8 is usedkou2012-10-281-0/+22
| | | | | | | | | for UTF-16XX encoded XML that doesn't have encoding="UTF-16" in XML declration. * test/rexml/test_document.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Group tests that they parsekou2012-10-281-14/+16
| | | | | | | UTF-16XX encoded XML that has encoding="UTF-16" in XML declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Add tests for parsing XML encodedkou2012-10-281-0/+22
| | | | | | | by UTF-16 with BOM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): Add :encoding optionkou2012-10-281-0/+22
| | | | | | | | | to support custom XML encoding. [Feature #4872] (work in progress) * test/rexml/test_document.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb (REXML::Document#write): Accept optionskou2012-10-281-0/+95
| | | | | | | | Hash as argument. * test/rexml/test_document.rb: Add tests for the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/source.rb: force_encoding("UTF-8") when the inputnaruse2010-04-141-0/+14
| | | | | | is already UTF-8. patched by Kouhei Sutou [ruby-core:23404] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):nobu2009-12-291-0/+10
| | | | | | | | 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
* * lib/rexml/formatters/default.rb (write_attribute): fix antenderlove2009-11-281-0/+19
| | | | | | | exception when printing a document when duplicate namespaced attributes exist. Thanks, Alexey Froloff [ruby-core:2389] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/entity.rb (unnormalized): do not callshugo2008-11-061-1/+2
| | | | | | | | | | document.record_entity_expansion if document is nil. see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>. Thanks, Naohisa Goto. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: removed garbage.shugo2008-09-131-41/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * text/rexml/test_document.rb (test_entity_expansion_limit): added tests.shugo2008-09-131-0/+23
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb: limit entity expansion.shugo2008-09-011-0/+83
* lib/rexml/entity.rb: ditto. * test/rexml/test_document.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e