Fixed node() type test for the XPath compiler

This ensures the handler behaves the same as in the old XPath evaluator.
This commit is contained in:
Yorick Peterse 2015-07-31 00:22:29 +02:00
parent 4da1c637bc
commit 23379d6467
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ module Oga
# @return [Oga::Ruby::Node] # @return [Oga::Ruby::Node]
# #
def on_type_test_node(input) def on_type_test_node(input)
input.is_a?(XML::Node) input.is_a?(XML::Node).or(input.is_a?(XML::Document))
end end
private private