Revamp descendant compiler specs

This commit is contained in:
Yorick Peterse committed 2015-08-28 15:29:09 +02:00
1 parent 70bea2071c
commit aa3fbcf522
2 files changed
+47 -18

No files matched your search

+4 -2
View File
@@ -223,8 +223,10 @@ module Oga
def on_axis_descendant(ast, input)
node = node_literal
input.each_node.add_block(node) do
process(ast, node).if_true { yield node }
document_or_node(input).if_true do
input.each_node.add_block(node) do
process(ast, node).if_true { yield node }
end
end
end