Sha256: f968b387a42da9376ce5851e7b4e057202380d86d1fb1915031928d95daab081
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 Bytes
Contents
# encoding: utf-8 class Favicon < ::HTML::Proofer::Checkable def rel @rel end end class Favicons < ::HTML::Proofer::Checks::Check def run return unless @options[:favicon] @html.xpath("//link[not(ancestor::pre or ancestor::code)]").each do |favicon| favicon = Favicon.new favicon, "favicon", self next if favicon.ignore? return if favicon.rel.split(" ").last.eql? "icon" end self.add_issue "no favicon specified" end end
Version data entries
5 entries across 5 versions & 1 rubygems