summaryrefslogtreecommitdiffstats
path: root/parser/html/java/htmlparser/ruby-gcj/test/fonts.rb
blob: 595e3ae062f295192aa233518e51c713d069c3a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
require 'nu/validator'
require 'open-uri'

ARGV.each do |arg|
  doc = Nu::Validator::parse(open(arg))
  doc.xpath("//*[local-name()='font']").each do |font|
    font.attributes.each do |name, attr|
      puts "#{name} => #{attr.value}"
    end
  end
end