class SiteHealth::XML

Checks for XML-errors (backed by the excellent Nokogiri gem)

Protected Instance Methods

check() click to toggle source
# File lib/site_health/checkers/xml.rb, line 18
def check
  errors = page.doc.errors.map(&:to_s)
  errors.each do |error|
    add_issue_type(:parse_error, detail: error)
  end
end