ruby/test/rexml
kou 1d67b9de28 rexml: disable XPath 1.0 compatible "#{ELEMENT_NAME}" processing by default
It breaks backward compatibility than I thought. So it's disabled by
default. It means that REXML's XPath processor isn't compatible with
XPath 1.0. But it will be acceptable for users.

We can enable it by specifying "strict: true" to
REXML::XPathParser.new explicitly.

* lib/rexml/xpath.rb,
  lib/rexml/xpath_parser.rb: Accept "strict: true" option.

* test/rexml/test_contrib.rb,
  test/rexml/xpath/test_base.rb: Use not XPath 1.0 compatible behavior.

* test/rexml/test_jaxen.rb: Use XPath 1.0 compatible behavior.

* test/rss/test_1.0.rb,
  test/rss/test_dublincore.rb,
  spec/ruby/library/rexml/element/namespace_spec.rb,
  spec/ruby/library/rexml/element/namespaces_spec.rb,
  spec/ruby/library/rexml/element/prefixes_spec.rb: Enable again.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-28 01:36:18 +00:00
..
data * test/rexml/test_encoding.rb 2014-10-23 07:31:31 +00:00
parse Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
parser rexml: add close tag check on end of document to StreamParser 2017-06-07 13:01:28 +00:00
xpath rexml: disable XPath 1.0 compatible "#{ELEMENT_NAME}" processing by default 2018-04-28 01:36:18 +00:00
listener.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
rexml_test_utils.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_attributes.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_attributes_mixin.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_changing_encoding.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_comment.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_contrib.rb rexml: disable XPath 1.0 compatible "#{ELEMENT_NAME}" processing by default 2018-04-28 01:36:18 +00:00
test_core.rb rexml: Fix XPath bug of /#{ELEMENT_NAME} 2018-04-22 08:09:04 +00:00
test_doctype.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_document.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_element.rb rexml: REXML::Element#[] accepts String or Symbol as attribute name 2016-12-06 13:57:56 +00:00
test_elements.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_encoding.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_entity.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_functions.rb REXML: Fix a bug that unexpected methods can be called as a XPath function 2017-08-13 12:14:24 +00:00
test_functions_number.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_jaxen.rb rexml: disable XPath 1.0 compatible "#{ELEMENT_NAME}" processing by default 2018-04-28 01:36:18 +00:00
test_light.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_lightparser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_listener.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_martin_fowler.rb Rename test classes to allow stable test count when running test-all -j 2018-03-13 06:29:02 +00:00
test_namespace.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_order.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_preceding_sibling.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_pullparser.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_rexml_issuezilla.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_sax.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_stream.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_text.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_ticket_80.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_validation_rng.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
test_xml_declaration.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00