lib/roadie/markup_improver.rb in roadie-3.0.5 vs lib/roadie/markup_improver.rb in roadie-3.1.0.rc1
- old
+ new
@@ -27,12 +27,13 @@
ensure_doctype_present
head = ensure_head_element_present
ensure_declared_charset head
end
- private
+ protected
attr_reader :dom
+ private
def ensure_doctype_present
return if uses_buggy_jruby?
return if @html.include?('<!DOCTYPE ')
# Nokogiri adds a "default" doctype to the DOM, which we will remove
dom.internal_subset.remove unless dom.internal_subset.nil?