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:
parent
4da1c637bc
commit
23379d6467
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue