mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-27 09:29:06 +00:00
36189e6a63
https://hg.mozilla.org/projects/htmlparser/ Commit: abe62ab2a9b69ccb3b5d8a231ec1ae11154c571d
12 lines
254 B
Ruby
12 lines
254 B
Ruby
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
|