Use has_parent? in on_axis_following_sibling.
This commit is contained in:
parent
a1f80b4995
commit
c0a6610d65
|
@ -282,7 +282,7 @@ module Oga
|
||||||
|
|
||||||
context.each do |context_node|
|
context.each do |context_node|
|
||||||
check = false
|
check = false
|
||||||
parent = context_node.respond_to?(:parent) ? context_node.parent : nil
|
parent = has_parent?(context_node) ? context_node.parent : nil
|
||||||
|
|
||||||
@document.each_node do |doc_node|
|
@document.each_node do |doc_node|
|
||||||
# Skip child nodes of the current context node, compare all
|
# Skip child nodes of the current context node, compare all
|
||||||
|
|
Loading…
Reference in New Issue