Class: Bashtetikn::HtmlValidatorFromW3C

Inherits:
Object
  • Object
show all
Defined in:
lib/bashtetikn/html_validator_from_w3c.rb

Overview

Uses validator provided by W3C to validate HTML

Instance Method Summary collapse

Instance Method Details

#validate_text(text_to_validate) ⇒ Object

Validates html text



9
10
11
# File 'lib/bashtetikn/html_validator_from_w3c.rb', line 9

def validate_text(text_to_validate)
  validator.validate_text(text_to_validate)
end

#validate_uri(uri) ⇒ Object



13
14
15
# File 'lib/bashtetikn/html_validator_from_w3c.rb', line 13

def validate_uri(uri)
  validator.validate_uri(uri)
end

#validatorObject

The validator used to process the page



18
19
20
# File 'lib/bashtetikn/html_validator_from_w3c.rb', line 18

def validator
  W3CValidators::NuValidator.new
end