diff --git a/lib/oga/xml/querying.rb b/lib/oga/xml/querying.rb index 80691b0..cd32b1e 100644 --- a/lib/oga/xml/querying.rb +++ b/lib/oga/xml/querying.rb @@ -63,8 +63,8 @@ module Oga # # @see [#xpath] # @return [Oga::XML::Node|Oga::XML::Attribute] - def at_xpath(*args) - result = xpath(*args) + def at_xpath(*args, namespaces: nil) + result = xpath(*args, namespaces: namespaces) result.is_a?(XML::NodeSet) ? result.first : result end