class Nokogiri::XML::DTD

def each

def each
  attributes.each do |key, value|
    yield([key, value])
  end
end

def html5_dtd?

def html5_dtd?
  html_dtd? &&
    external_id.nil? &&
    (system_id.nil? || system_id == 'about:legacy-compat')
end

def html_dtd?

def html_dtd?
  name.casecmp('html').zero?
end

def keys

def keys
  attributes.keys
end