From 15ecca4a64e06f60d2835570a30cd2d616f9429d Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Tue, 18 Aug 2015 21:01:51 +0200 Subject: [PATCH] Removed extra throw from following-sibling() I can't quite recall why this throw was present in the Evaluator in the first place, but removing it doesn't seem to break anything (in the Evaluator). In fact, removing it actually fixes some of the CSS specs that were broken when using the Compiler. --- lib/oga/xpath/compiler.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/oga/xpath/compiler.rb b/lib/oga/xpath/compiler.rb index 0e726e1..618ae8e 100644 --- a/lib/oga/xpath/compiler.rb +++ b/lib/oga/xpath/compiler.rb @@ -304,9 +304,7 @@ module Oga end .followed_by do backup_variable(node, doc_node) do - process(ast, node, &block).if_true do - yield(node).followed_by(throw_message(:skip_children)) - end + process(ast, node, &block).if_true { yield node } end end end