Use has_parent? in on_axis_following_sibling.

This commit is contained in:
Yorick Peterse 2014-08-04 21:57:16 +02:00
parent a1f80b4995
commit c0a6610d65
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ module Oga
context.each do |context_node|
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|
# Skip child nodes of the current context node, compare all