Skip to content

Commit

Permalink
doc: better exception when HTML5 functionality isn't supported
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed May 10, 2023
1 parent 730c135 commit d2744d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/loofah.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,19 @@ def scrub_html5_fragment(string_or_io, method)
end
else
def html5_document(*args, &block)
raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
end

def html5_fragment(*args, &block)
raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
end

def scrub_html5_document(string_or_io, method)
raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
end

def scrub_html5_fragment(string_or_io, method)
raise NotImplementedError, "HTML5 is not supported by your version of Nokogiri"
raise NotImplementedError, "Loofah::HTML5 is not supported by your version of Nokogiri"
end
end

Expand Down

0 comments on commit d2744d4

Please sign in to comment.