w3c_validators 1.3 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.gitignore +2 -1
- data/CHANGELOG +8 -1
- data/README.md +48 -25
- data/lib/w3c_validators/feed_validator.rb +9 -3
- data/lib/w3c_validators/nu_validator.rb +4 -2
- data/lib/w3c_validators/validator.rb +32 -13
- data/lib/w3c_validators/version.rb +1 -1
- data/test/http_recording/feed_validating_uri_with_soap.yml +5 -5
- data/test/http_recording/html5_getting_request_data.yml +4 -4
- data/test/http_recording/html5_validating_file.yml +78 -0
- data/test/http_recording/html5_validating_text.yml +87 -0
- data/test/http_recording/html5_validating_text_via_file.yml +78 -0
- data/test/http_recording/html5_validating_uri.yml +27 -27
- data/test/http_recording/markup_debugging_uri.yml +3 -3
- data/test/http_recording/markup_overriding_charset.yml +1 -1
- data/test/http_recording/markup_overriding_charset_for_fallback_only.yml +3 -3
- data/test/http_recording/markup_overriding_doctype.yml +8 -8
- data/test/http_recording/markup_overriding_doctype_for_fallback_only.yml +3 -3
- data/test/http_recording/markup_validating_uri_with_head_request.yml +1 -1
- data/test/http_recording/markup_validating_uri_with_soap.yml +3 -3
- data/test/http_recording/markup_validator_abort.yml +1 -1
- data/test/http_recording/markup_validator_contains_details_of_error_conditions.yml +3 -3
- data/test/http_recording/markup_validator_html5_redirect.yml +101 -0
- data/test/test_feed_validator.rb +1 -1
- data/test/test_html5_validator.rb +27 -13
- data/test/test_markup_validator.rb +9 -9
- data/test/test_proxy.rb +1 -1
- data/test/tools/curl_nu.sh +12 -0
- metadata +23 -19
- data/Gemfile.lock +0 -43
@@ -0,0 +1,78 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://validator.nu/?out=json&parser=html&showsource=yes
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "<!DOCTYPE html>\n<html lang=\"en-ca\">\n <head>\n <!--<meta http-equiv=\"Content-type\"
|
9
|
+
content=\"text/html; charset=iso-8859-1\">-->\n <title>HTML 5 Example</title>\n
|
10
|
+
\ </head>\n <body>\n \t<!-- should have one error (missing </section>) and
|
11
|
+
one warning (no content type) -->\n <p>This is a sample HTML 5 document.</p>\n
|
12
|
+
\ <section>\n\t <h1>Example of paragraphs</h1>\n\t This is the <em>first</em>
|
13
|
+
paragraph in this example.\n\t <p>This is the second.</p>\n\t <p>Test<br>test</p>\n
|
14
|
+
\ </body>\n</html>\n"
|
15
|
+
headers:
|
16
|
+
Content-Type:
|
17
|
+
- text/html; charset=utf-8
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
Accept:
|
21
|
+
- "*/*"
|
22
|
+
User-Agent:
|
23
|
+
- Ruby
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Server:
|
30
|
+
- nginx/1.11.5
|
31
|
+
Date:
|
32
|
+
- Sat, 17 Dec 2016 21:25:52 GMT
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
Transfer-Encoding:
|
36
|
+
- chunked
|
37
|
+
Connection:
|
38
|
+
- keep-alive
|
39
|
+
Accept-Encoding:
|
40
|
+
- gzip
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- content-type
|
45
|
+
Expires:
|
46
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
47
|
+
Cache-Control:
|
48
|
+
- no-cache
|
49
|
+
Strict-Transport-Security:
|
50
|
+
- max-age=31536000; includeSubDomains; preload
|
51
|
+
body:
|
52
|
+
encoding: ASCII-8BIT
|
53
|
+
string: !binary |-
|
54
|
+
eyJtZXNzYWdlcyI6W3sidHlwZSI6ImVycm9yIiwibGFzdExpbmUiOjE1LCJs
|
55
|
+
YXN0Q29sdW1uIjo5LCJmaXJzdENvbHVtbiI6MywibWVzc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
+
c2FtcGxlIEhUTUwgNSBkb2N1bWVudC48L3A+XG4gICAgPHNlY3Rpb24+XG5c
|
72
|
+
dCAgPGgxPkV4YW1wbGUgb2YgcGFyYWdyYXBoczwvaDE+XG5cdCAgVGhpcyBp
|
73
|
+
cyB0aGUgPGVtPmZpcnN0PC9lbT4gcGFyYWdyYXBoIGluIHRoaXMgZXhhbXBs
|
74
|
+
ZS5cblx0ICA8cD5UaGlzIGlzIHRoZSBzZWNvbmQuPC9wPlxuXHQgIDxwPlRl
|
75
|
+
c3Q8YnI+dGVzdDwvcD5cbiAgPC9ib2R5PlxuPC9odG1sPiJ9fQo=
|
76
|
+
http_version:
|
77
|
+
recorded_at: Sat, 17 Dec 2016 21:25:52 GMT
|
78
|
+
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.nu/?doc=https://
|
5
|
+
uri: https://validator.nu/?doc=https://w3c-validators.github.io/w3c_validators/invalid_html5.html&out=json&parser=html&showsource=yes
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,7 +21,7 @@ http_interactions:
|
|
21
21
|
Server:
|
22
22
|
- nginx/1.11.5
|
23
23
|
Date:
|
24
|
-
- Sun,
|
24
|
+
- Sun, 18 Dec 2016 11:04:54 GMT
|
25
25
|
Content-Type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
Transfer-Encoding:
|
@@ -45,30 +45,30 @@ http_interactions:
|
|
45
45
|
body:
|
46
46
|
encoding: ASCII-8BIT
|
47
47
|
string: !binary |-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|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|
+
biAgICA8dGl0bGU+SFRNTCA1IEV4YW1wbGU8L3RpdGxlPlxuICA8L2hlYWQ+
|
64
|
+
XG4gIDxib2R5PlxuICBcdDwhLS0gc2hvdWxkIGhhdmUgb25lIGVycm9yICht
|
65
|
+
aXNzaW5nIDwvc2VjdGlvbj4pIGFuZCBvbmUgd2FybmluZyAobm8gY29udGVu
|
66
|
+
dCB0eXBlKSAtLT5cbiAgICA8cD5UaGlzIGlzIGEgc2FtcGxlIEhUTUwgNSBk
|
67
|
+
b2N1bWVudC48L3A+XG4gICAgPHNlY3Rpb24+XG5cdCAgPGgxPkV4YW1wbGUg
|
68
|
+
b2YgcGFyYWdyYXBoczwvaDE+XG5cdCAgVGhpcyBpcyB0aGUgPGVtPmZpcnN0
|
69
|
+
PC9lbT4gcGFyYWdyYXBoIGluIHRoaXMgZXhhbXBsZS5cblx0ICA8cD5UaGlz
|
70
|
+
IGlzIHRoZSBzZWNvbmQuPC9wPlxuXHQgIDxwPlRlc3Q8YnI+dGVzdDwvcD5c
|
71
|
+
biAgPC9ib2R5PlxuPC9odG1sPiJ9fQo=
|
72
72
|
http_version:
|
73
|
-
recorded_at: Sun,
|
73
|
+
recorded_at: Sun, 18 Dec 2016 11:04:54 GMT
|
74
74
|
recorded_with: VCR 3.0.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?debug=1&output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?debug=1&output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_markup_6.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -45,7 +45,7 @@ http_interactions:
|
|
45
45
|
name=\"Content-Location\">(undefined)</m:debug>\n <m:debug name=\"Transfer-Encoding\">(undefined)</m:debug>\n
|
46
46
|
\ <m:debug name=\"Parse Mode\">DTD+XML</m:debug>\n <m:debug name=\"Parse
|
47
47
|
Mode Factor\">Doctype</m:debug>\n <m:debug name=\"Parsers Used\">OpenSP
|
48
|
-
(valid non-sgml-char-ref no-duplicate xml)</m:debug>\n \n <m:uri>https://
|
48
|
+
(valid non-sgml-char-ref no-duplicate xml)</m:debug>\n \n <m:uri>https://w3c-validators.github.io/w3c_validators/invalid_markup_6.html</m:uri>\n
|
49
49
|
\ <m:checkedby>https://validator.w3.org/</m:checkedby>\n
|
50
50
|
\ <m:doctype>-//W3C//DTD XHTML 1.0 Transitional//EN</m:doctype>\n <m:charset>utf-8</m:charset>\n
|
51
51
|
\ <m:validity>false</m:validity>\n <m:errors>\n <m:errorcount>1</m:errorcount>\n
|
@@ -53,7 +53,7 @@ http_interactions:
|
|
53
53
|
\ <m:col>13</m:col>\n <m:message>there is no
|
54
54
|
attribute "unknown6"</m:message>\n <m:messageid>108</m:messageid>\n
|
55
55
|
\ <m:explanation> <![CDATA[\n <p class=\"helpwanted\">\n
|
56
|
-
\ <a\n href=\"feedback.html?uri=https%3A%2F%
|
56
|
+
\ <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup_6.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
57
57
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
58
58
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
59
59
|
attribute named above in your document, but the\n document type you are
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?charset=utf-16&fbc=0&output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?charset=utf-16&fbc=0&output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_markup_2.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?output=soap12&uri=https://w3c-validators.github.io/w3c_validators/markup_overriding_charset_for_fallback_only.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -38,7 +38,7 @@ http_interactions:
|
|
38
38
|
encoding: UTF-8
|
39
39
|
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:markupvalidationresponse
|
40
40
|
env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/markup-validator\">\n
|
41
|
-
\ \n <m:uri>https://
|
41
|
+
\ \n <m:uri>https://w3c-validators.github.io/w3c_validators/markup_overriding_charset_for_fallback_only.html</m:uri>\n
|
42
42
|
\ <m:checkedby>https://validator.w3.org/</m:checkedby>\n
|
43
43
|
\ <m:doctype>-//W3C//DTD XHTML 1.0 Transitional//EN</m:doctype>\n <m:charset>utf-8</m:charset>\n
|
44
44
|
\ <m:validity>false</m:validity>\n <m:errors>\n <m:errorcount>1</m:errorcount>\n
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
\ <m:col>12</m:col>\n <m:message>there is no
|
47
47
|
attribute "unknown"</m:message>\n <m:messageid>108</m:messageid>\n
|
48
48
|
\ <m:explanation> <![CDATA[\n <p class=\"helpwanted\">\n
|
49
|
-
\ <a\n href=\"feedback.html?uri=https%3A%2F%
|
49
|
+
\ <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Fmarkup_overriding_charset_for_fallback_only.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
50
50
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
51
51
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
52
52
|
attribute named above in your document, but the\n document type you are
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?doctype=HTML%203.2&fbd=0&output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?doctype=HTML%203.2&fbd=0&output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_markup.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -47,7 +47,7 @@ http_interactions:
|
|
47
47
|
encoding: UTF-8
|
48
48
|
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:markupvalidationresponse
|
49
49
|
env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/markup-validator\">\n
|
50
|
-
\ \n <m:uri>https://
|
50
|
+
\ \n <m:uri>https://w3c-validators.github.io/w3c_validators/invalid_markup.html</m:uri>\n
|
51
51
|
\ <m:checkedby>http://validator.w3.org/</m:checkedby>\n <m:doctype>-//W3C//DTD
|
52
52
|
HTML 3.2 Final//EN</m:doctype>\n <m:charset>utf-8</m:charset>\n <m:validity>false</m:validity>\n
|
53
53
|
\ <m:warnings>\n <m:warningcount>3</m:warningcount>\n <m:warninglist>\n
|
@@ -58,7 +58,7 @@ http_interactions:
|
|
58
58
|
\ <m:message>NET-enabling start-tag requires SHORTTAG YES</m:message>\n
|
59
59
|
\ <m:messageid>247</m:messageid>\n <m:explanation>
|
60
60
|
\ <![CDATA[\n <p class=\"helpwanted\">\n <a\n
|
61
|
-
\ href=\"feedback.html?uri=https%3A%2F%
|
61
|
+
\ href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup.html;errmsg_id=247#errormsg\"\n\ttitle=\"Suggest
|
62
62
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
63
63
|
\ </p>\n\n <div class=\"ve mid-247\">\n <p>\n For the current
|
64
64
|
document, the validator interprets strings like\n <code class=\"inline\"><FOO
|
@@ -81,7 +81,7 @@ http_interactions:
|
|
81
81
|
\ <m:line>2</m:line>\n <m:col>13</m:col>\n <m:message>there
|
82
82
|
is no attribute "XMLNS"</m:message>\n <m:messageid>108</m:messageid>\n
|
83
83
|
\ <m:explanation> <![CDATA[\n <p class=\"helpwanted\">\n
|
84
|
-
\ <a\n href=\"feedback.html?uri=https%3A%2F%
|
84
|
+
\ <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
85
85
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
86
86
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
87
87
|
attribute named above in your document, but the\n document type you are
|
@@ -107,7 +107,7 @@ http_interactions:
|
|
107
107
|
\ \n <m:error>\n <m:line>2</m:line>\n <m:col>53</m:col>\n
|
108
108
|
\ <m:message>there is no attribute "XML:LANG"</m:message>\n
|
109
109
|
\ <m:messageid>108</m:messageid>\n <m:explanation>
|
110
|
-
\ <![CDATA[\n <p class=\"helpwanted\">\n <a\n href=\"feedback.html?uri=https%3A%2F%
|
110
|
+
\ <![CDATA[\n <p class=\"helpwanted\">\n <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
111
111
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
112
112
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
113
113
|
attribute named above in your document, but the\n document type you are
|
@@ -133,7 +133,7 @@ http_interactions:
|
|
133
133
|
\ <m:error>\n <m:line>2</m:line>\n <m:col>66</m:col>\n
|
134
134
|
\ <m:message>there is no attribute "LANG"</m:message>\n
|
135
135
|
\ <m:messageid>108</m:messageid>\n <m:explanation>
|
136
|
-
\ <![CDATA[\n <p class=\"helpwanted\">\n <a\n href=\"feedback.html?uri=https%3A%2F%
|
136
|
+
\ <![CDATA[\n <p class=\"helpwanted\">\n <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
137
137
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
138
138
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
139
139
|
attribute named above in your document, but the\n document type you are
|
@@ -159,7 +159,7 @@ http_interactions:
|
|
159
159
|
\ <m:col>70</m:col>\n <m:message>character data
|
160
160
|
is not allowed here</m:message>\n <m:messageid>63</m:messageid>\n
|
161
161
|
\ <m:explanation> <![CDATA[\n <p class=\"helpwanted\">\n
|
162
|
-
\ <a\n href=\"feedback.html?uri=https%3A%2F%
|
162
|
+
\ <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup.html;errmsg_id=63#errormsg\"\n\ttitle=\"Suggest
|
163
163
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
164
164
|
\ </p>\n\n <div class=\"ve mid-63\">\n <p>\n You have used character
|
165
165
|
data somewhere it is not permitted to appear.\n Mistakes that can cause
|
@@ -180,7 +180,7 @@ http_interactions:
|
|
180
180
|
\ <m:col>12</m:col>\n <m:message>there is no
|
181
181
|
attribute "UNKNOWN"</m:message>\n <m:messageid>108</m:messageid>\n
|
182
182
|
\ <m:explanation> <![CDATA[\n <p class=\"helpwanted\">\n
|
183
|
-
\ <a\n href=\"feedback.html?uri=https%3A%2F%
|
183
|
+
\ <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
184
184
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
185
185
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
186
186
|
attribute named above in your document, but the\n document type you are
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?doctype=HTML%203.2&fbd=1&output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?doctype=HTML%203.2&fbd=1&output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_markup_1.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -47,7 +47,7 @@ http_interactions:
|
|
47
47
|
encoding: UTF-8
|
48
48
|
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:markupvalidationresponse
|
49
49
|
env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/markup-validator\">\n
|
50
|
-
\ \n <m:uri>https://
|
50
|
+
\ \n <m:uri>https://w3c-validators.github.io/w3c_validators/invalid_markup_1.html</m:uri>\n
|
51
51
|
\ <m:checkedby>http://validator.w3.org/</m:checkedby>\n <m:doctype>-//W3C//DTD
|
52
52
|
XHTML 1.0 Transitional//EN</m:doctype>\n <m:charset>utf-8</m:charset>\n
|
53
53
|
\ <m:validity>false</m:validity>\n <m:warnings>\n <m:warningcount>0</m:warningcount>\n
|
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
\ <m:error>\n <m:line>8</m:line>\n <m:col>12</m:col>\n
|
57
57
|
\ <m:message>there is no attribute "unknown"</m:message>\n
|
58
58
|
\ <m:messageid>108</m:messageid>\n <m:explanation>
|
59
|
-
\ <![CDATA[\n <p class=\"helpwanted\">\n <a\n href=\"feedback.html?uri=https%3A%2F%
|
59
|
+
\ <![CDATA[\n <p class=\"helpwanted\">\n <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup_1.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
60
60
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
61
61
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
62
62
|
attribute named above in your document, but the\n document type you are
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: head
|
5
|
-
uri: https://validator.w3.org/check?output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_markup_4.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_markup_5.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -38,7 +38,7 @@ http_interactions:
|
|
38
38
|
encoding: UTF-8
|
39
39
|
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:markupvalidationresponse
|
40
40
|
env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/markup-validator\">\n
|
41
|
-
\ \n <m:uri>https://
|
41
|
+
\ \n <m:uri>https://w3c-validators.github.io/w3c_validators/invalid_markup_5.html</m:uri>\n
|
42
42
|
\ <m:checkedby>https://validator.w3.org/</m:checkedby>\n
|
43
43
|
\ <m:doctype>-//W3C//DTD XHTML 1.0 Transitional//EN</m:doctype>\n <m:charset>utf-8</m:charset>\n
|
44
44
|
\ <m:validity>false</m:validity>\n <m:errors>\n <m:errorcount>1</m:errorcount>\n
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
\ <m:col>13</m:col>\n <m:message>there is no
|
47
47
|
attribute "unknown5"</m:message>\n <m:messageid>108</m:messageid>\n
|
48
48
|
\ <m:explanation> <![CDATA[\n <p class=\"helpwanted\">\n
|
49
|
-
\ <a\n href=\"feedback.html?uri=https%3A%2F%
|
49
|
+
\ <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup_5.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
50
50
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
51
51
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
52
52
|
attribute named above in your document, but the\n document type you are
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?debug=1&output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?debug=1&output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_encoding.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://validator.w3.org/check?output=soap12&uri=https://
|
5
|
+
uri: https://validator.w3.org/check?output=soap12&uri=https://w3c-validators.github.io/w3c_validators/invalid_markup_7.html
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -38,7 +38,7 @@ http_interactions:
|
|
38
38
|
encoding: UTF-8
|
39
39
|
string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:markupvalidationresponse
|
40
40
|
env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/markup-validator\">\n
|
41
|
-
\ \n <m:uri>https://
|
41
|
+
\ \n <m:uri>https://w3c-validators.github.io/w3c_validators/invalid_markup_7.html</m:uri>\n
|
42
42
|
\ <m:checkedby>https://validator.w3.org/</m:checkedby>\n
|
43
43
|
\ <m:doctype>-//W3C//DTD XHTML 1.0 Transitional//EN</m:doctype>\n <m:charset>utf-8</m:charset>\n
|
44
44
|
\ <m:validity>false</m:validity>\n <m:errors>\n <m:errorcount>1</m:errorcount>\n
|
@@ -46,7 +46,7 @@ http_interactions:
|
|
46
46
|
\ <m:col>13</m:col>\n <m:message>there is no
|
47
47
|
attribute "unknown7"</m:message>\n <m:messageid>108</m:messageid>\n
|
48
48
|
\ <m:explanation> <![CDATA[\n <p class=\"helpwanted\">\n
|
49
|
-
\ <a\n href=\"feedback.html?uri=https%3A%2F%
|
49
|
+
\ <a\n href=\"feedback.html?uri=https%3A%2F%2Fw3c-validators.github.io%2Fw3c_validators%2Finvalid_markup_7.html;errmsg_id=108#errormsg\"\n\ttitle=\"Suggest
|
50
50
|
improvements on this error message through our feedback channels\" \n >✉</a>\n
|
51
51
|
\ </p>\n\n <div class=\"ve mid-108\">\n <p>\n You have used the
|
52
52
|
attribute named above in your document, but the\n document type you are
|
@@ -0,0 +1,101 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://validator.w3.org/check
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "--349832898984244898448024464570528145\r\nContent-Disposition: form-data;
|
9
|
+
name=\"fragment\"\r\n\r\n<!DOCTYPE html><html><head><meta charset=\"utf-8\"><title>Hello</title></head><body><h1>H
|
10
|
+
\ i!</h1></body>\r\n--349832898984244898448024464570528145\r\nContent-Disposition:
|
11
|
+
form-data; name=\"output\"\r\n\r\njson\r\n--349832898984244898448024464570528145--\r\n"
|
12
|
+
headers:
|
13
|
+
Content-Type:
|
14
|
+
- multipart/form-data; boundary=349832898984244898448024464570528145
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
17
|
+
Accept:
|
18
|
+
- "*/*"
|
19
|
+
User-Agent:
|
20
|
+
- Ruby
|
21
|
+
response:
|
22
|
+
status:
|
23
|
+
code: 307
|
24
|
+
message: Temporary Redirect
|
25
|
+
headers:
|
26
|
+
Date:
|
27
|
+
- Sat, 17 Dec 2016 22:18:41 GMT
|
28
|
+
Server:
|
29
|
+
- Apache/2.4.10 (Debian)
|
30
|
+
Location:
|
31
|
+
- https://validator.w3.org/nu/#textarea
|
32
|
+
Transfer-Encoding:
|
33
|
+
- chunked
|
34
|
+
Strict-Transport-Security:
|
35
|
+
- max-age=15552015; preload
|
36
|
+
Public-Key-Pins:
|
37
|
+
- pin-sha256="cN0QSpPIkuwpT6iP2YjEo1bEwGpH/yiUn6yhdy+HNto="; pin-sha256="WGJkyYjx1QMdMe0UqlyOKXtydPDVrk7sl2fV+nNm1r4=";
|
38
|
+
pin-sha256="LrKdTxZLRTvyHM4/atX2nquX9BeHRZMCxg3cf4rhc2I="; max-age=864000
|
39
|
+
X-Frame-Options:
|
40
|
+
- deny
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: "Status: 302 Found\r\nLocation: https://validator.w3.org/nu/?doc=upload%3A%2F%2FForm%20Submission&out=json\r\n\r\nContent-Type:
|
46
|
+
application/json; charset=UTF-8\nX-W3C-Validator-Recursion: 1\nX-W3C-Validator-Status:
|
47
|
+
Valid\nX-W3C-Validator-Errors: 0\nX-W3C-Validator-Warnings: 2\n\n{\n \"url\":
|
48
|
+
\"upload://Form Submission\",\n \"messages\": [\n \n {\n
|
49
|
+
\ \n \n \"message\": ,\n \"messageid\":
|
50
|
+
\"html5\",\n \"explanation\": \" <p class=\\\"helpwanted\\\">\\n
|
51
|
+
\ <a\\n href=\\\"feedback.html?uri=;errmsg_id=html5#errormsg\\\"\\n\\ttitle=\\\"Suggest
|
52
|
+
improvements on this error message through our feedback channels\\\" \\n >✉</a>\\n
|
53
|
+
\ </p>\\n\",\n \"type\": \"info\"\n }\n \n
|
54
|
+
\ ],\n \"source\": {\n \"encoding\": \"utf-8\",\n \"type\":
|
55
|
+
\"\"\n }\n}\n"
|
56
|
+
http_version:
|
57
|
+
recorded_at: Sat, 17 Dec 2016 22:18:41 GMT
|
58
|
+
- request:
|
59
|
+
method: post
|
60
|
+
uri: https://validator.w3.org/check
|
61
|
+
body:
|
62
|
+
encoding: UTF-8
|
63
|
+
string: "--349832898984244898448024464570528145\r\nContent-Disposition: form-data;
|
64
|
+
name=\"url\"\r\n\r\nhttps://validator.w3.org/nu/#textarea\r\n--349832898984244898448024464570528145--\r\n"
|
65
|
+
headers:
|
66
|
+
Content-Type:
|
67
|
+
- multipart/form-data; boundary=349832898984244898448024464570528145
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
70
|
+
Accept:
|
71
|
+
- "*/*"
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 302
|
77
|
+
message: Found
|
78
|
+
headers:
|
79
|
+
Date:
|
80
|
+
- Sat, 17 Dec 2016 22:18:42 GMT
|
81
|
+
Server:
|
82
|
+
- Apache/2.4.10 (Debian)
|
83
|
+
Location:
|
84
|
+
- http://validator.w3.org/check?uri=https%3A%2F%2Fvalidator.w3.org%2Fnu%2F%23textarea
|
85
|
+
Content-Length:
|
86
|
+
- '0'
|
87
|
+
Strict-Transport-Security:
|
88
|
+
- max-age=15552015; preload
|
89
|
+
Public-Key-Pins:
|
90
|
+
- pin-sha256="cN0QSpPIkuwpT6iP2YjEo1bEwGpH/yiUn6yhdy+HNto="; pin-sha256="WGJkyYjx1QMdMe0UqlyOKXtydPDVrk7sl2fV+nNm1r4=";
|
91
|
+
pin-sha256="LrKdTxZLRTvyHM4/atX2nquX9BeHRZMCxg3cf4rhc2I="; max-age=864000
|
92
|
+
X-Frame-Options:
|
93
|
+
- deny
|
94
|
+
X-Xss-Protection:
|
95
|
+
- 1; mode=block
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: ''
|
99
|
+
http_version:
|
100
|
+
recorded_at: Sat, 17 Dec 2016 22:18:42 GMT
|
101
|
+
recorded_with: VCR 3.0.3
|