Fixed ancestor-or-self relative to attributes
Per libxml behaviour this axis shouldn't match attributes when using "ancestor-or-self::*".
This commit is contained in:
1 parent
d5aad9c1c9
commit
70bea2071c
2 files changed
+7
-1
No files matched your search
@@ -176,7 +176,7 @@ module Oga
|
||||
def on_axis_ancestor_or_self(ast, input)
|
||||
parent = unique_literal(:parent)
|
||||
|
||||
process(ast, input)
|
||||
process(ast, input).and(input.is_a?(XML::Node))
|
||||
.if_true { yield input }
|
||||
.followed_by do
|
||||
attribute_or_node(input).if_true do
|
||||
|
||||
Reference in new issue
Block a user