D
Damphyr
This is a mini-module that does not merit a RubyForge project but might
come in handy.
It's a module to facilitate HTML markup validation using the W3C Markup
validation Service.
I use it to automate validation for my websites, i.e. in a rake task I
do something like the following
require 'validator'
#targets is an array of URIs to the pages we want to validate
results=Hash.new
targets.each{|t|
res=W3CHTMLValidator.validate_page(page)
#any page with problems goes into the hash
results[page]=res.messages unless res.ok?
}
#do something with the results
Check it out at http://www.braveworld.net/riva/work/validator/index.html
Have fun,
V.-
--
http://www.braveworld.net/riva
____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.
come in handy.
It's a module to facilitate HTML markup validation using the W3C Markup
validation Service.
I use it to automate validation for my websites, i.e. in a rake task I
do something like the following
require 'validator'
#targets is an array of URIs to the pages we want to validate
results=Hash.new
targets.each{|t|
res=W3CHTMLValidator.validate_page(page)
#any page with problems goes into the hash
results[page]=res.messages unless res.ok?
}
#do something with the results
Check it out at http://www.braveworld.net/riva/work/validator/index.html
Have fun,
V.-
--
http://www.braveworld.net/riva
____________________________________________________________________
http://www.freemail.gr - äùñåÜí õðçñåóßá çëåêôñïíéêïý ôá÷õäñïìåßïõ.
http://www.freemail.gr - free email service for the Greek-speaking.