assert_valid_markup 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/assert_valid_markup.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/lib/assert_valid_markup.rb
CHANGED
@@ -32,7 +32,7 @@ class Test::Unit::TestCase
|
|
32
32
|
opts = @@default_avm_options.merge(options)
|
33
33
|
|
34
34
|
# html5 validation is a special case
|
35
|
-
opts[:validation_service] = :w3c if fragment =~
|
35
|
+
opts[:validation_service] = :w3c if fragment =~ /\A\s*<!DOCTYPE html>/
|
36
36
|
|
37
37
|
result = ''
|
38
38
|
if opts[:validation_service] == :local
|