diff options
Diffstat (limited to 'parser/html/java/htmlparser/ruby-gcj/test/fonts.rb')
-rw-r--r-- | parser/html/java/htmlparser/ruby-gcj/test/fonts.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/parser/html/java/htmlparser/ruby-gcj/test/fonts.rb b/parser/html/java/htmlparser/ruby-gcj/test/fonts.rb new file mode 100644 index 000000000..595e3ae06 --- /dev/null +++ b/parser/html/java/htmlparser/ruby-gcj/test/fonts.rb @@ -0,0 +1,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 |