lib/epub/searcher/xhtml.rb in epub-parser-0.4.0 vs lib/epub/searcher/xhtml.rb in epub-parser-0.4.1
- old
+ new
@@ -7,11 +7,11 @@
using Parser::XMLDocument::Refinements
ALGORITHMS = {}
class << self
- # @param element [REXML::Element, REXML::Document, Nokogiri::XML::Element, Nokogiri::XML::Document]
+ # @param element [REXML::Element, REXML::Document, Oga::XML::ELement, Oga::XML::Document, Nokogiri::XML::Element, Nokogiri::XML::Document]
# @param word [String]
# @return [Array<Result>]
def search_text(element, word)
new(element.respond_to?(:root) ? element.root : element).search_text(word)
end
@@ -21,10 +21,10 @@
def initialize(element)
@element = element
end
class Restricted < self
- # @param element [REXML::Element, Nokogiri::XML::Element]
+ # @param element [REXML::Element, Oga::XML::Element, Nokogiri::XML::Element]
# @return [Array<Result>]
def search_text(word, element=nil)
results = []
elem_index = 0