This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
39 lines (38 loc) · 2.88 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Living Validator with Filters</title>
<link href="http://validator.nu/icon.png" rel="icon">
<link href="http://validator.nu/style.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div id="welcome">
<p><strong>Update: The Message Filtering feature has been <a href="https://github.com/keeganstreet/HTML5-Validator-with-Filters/issues/1">upstreamed</a> to the W3C's <a href="https://validator.w3.org/nu/">Nu Html Checker</a>.</strong> This prototype is no longer necessary.</p>
<p>Welcome to the Living Validator <em>with filters</em>. Validate your HTML5 documents and filter the error messages. Validator by <a href="http://validator.nu">Validator.nu</a>. Filtering added by <a href="http://twitter.com/kstre">Keegan Street</a>. <a href="#" id="read-more">Read more</a>.<p>
<div id="welcome-more">
<p>Some HTML errors are outside of the control of web developers. For example some frameworks and content management systems generate invalid HTML by adding obsolete elements or attributes. This validator lets you filter out these errors so that you can focus on the errors that you do have control over. Using filters effectively will ensure that the errors you need to know about don't get lost in the noise of framework/CMS errors.</p>
<p>The validation for this service is completely handled by <a href="http://validator.nu">Validator.nu</a>. The validator is loaded with AJAX and filtering is added in as a layer on top with JavaScript. HTML5 local storage is used to remember your filtering preferences so you don't need to re-apply the same filters on every page.</p>
<p>To learn more, read my blog post <a href="http://keegan.st/2012/05/28/filtering-html5-validator-errors/">Filtering HTML5 Validator Errors</a>.</p>
</div>
</div>
<div id="num-errors"> </div>
<a href="https://github.com/keeganstreet/HTML5-Validator-with-Filters" id="github"><img src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png" alt="Fork me on GitHub" /></a>
<div id="validator-nu"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.2.min.js"><\/script>')</script>
<!--[if lte IE 9]> <script src="js/x-domain-request.js"></script> <![endif]-->
<script src="js/validator.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2218289-4']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>