# How To Test For W3C compliance locally and possibly to inclu

**URL:** <https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105>\
**Category:** Rails\
**Created:** [July 27, 2006, 7:35am UTC](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105 "2006-07-27T07:35:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![monozub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@monozub](https://www.ruby-forum.com/u/monozub)\
**Post date:** [July 27, 2006, 7:35am UTC](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105/1 "2006-07-27T07:35:33Z")

</div>

Hi Everyone,

As many of you out there I’m “protected” by the firewall which prevents  
me from checking my code for W3C compliance, I am able to check the  
production  
code but i would like to test my code before it goes to production.

So if anyone was able to have that check done locally, possibly  
including some sort of tests in to the integration process, I would  
truly appreciate knowledge exchange.

Sincerely:

Gregory B.

---

<div class="post-metadata">

**Author:** ![monozub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@monozub](https://www.ruby-forum.com/u/monozub)\
**Post date:** [July 27, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105/2 "2006-07-27T15:06:15Z")

</div>

i’m assuming you mean (x)html/css by code… if so, you can cut and  
paste into  
the w3c validators

“Validate by Direct Input”

(x)html =\> [http://validator.w3.org/](http://validator.w3.org/)  
css =\> [The W3C CSS Validation Service](http://jigsaw.w3.org/css-validator/)

if this is a work situation i suggest having a word with the powers that  
be -  
expecting you to develop web apps with that kind of limitation is  
ludicrous;  
mind you, deploying to a staging server is probably a good idea anyway

---

<div class="post-metadata">

**Author:** ![monozub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@monozub](https://www.ruby-forum.com/u/monozub)\
**Post date:** [July 27, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105/3 "2006-07-27T16:37:34Z")

</div>

Alternatively, use Firefox’s Web D. extension, which submits  
the html / css for you.

---

<div class="post-metadata">

**Author:** ![monozub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@monozub](https://www.ruby-forum.com/u/monozub)\
**Post date:** [July 27, 2006, 7:18pm UTC](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105/4 "2006-07-27T19:18:03Z")

</div>

Install the W3C validator locally and use the responsible markup  
plugin:-

[http://blog.codahale.com/2006/03/05/responsiblemarkup-v01-unit-test-](http://blog.codahale.com/2006/03/05/responsiblemarkup-v01-unit-test-)  
your-way-to-responsible-markup/

---

<div class="post-metadata">

**Author:** ![monozub](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/df705f/32.png) [@monozub](https://www.ruby-forum.com/u/monozub)\
**Post date:** [July 27, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/how-to-test-for-w3c-compliance-locally-and-possibly-to-inclu/100105/5 "2006-07-27T16:54:22Z")

</div>

Of course this isn’t going to deliver CI, but I swear by this firefox  
extension: [https://addons.mozilla.org/firefox/249/](https://addons.mozilla.org/firefox/249/). There’s an addon for  
Safari that does the same thing. It’s based on HTMLTidy, so it doesn’t  
require a network connection.

Matt
