Simon_Weaver
Simon_Weaver

Reputation: 146198

What options are there to find out if my ASP.NET MVC view is not XHTML compliant

Clarification: Thanks for the suggestions of tools for validating XHTML. I'm primarily looking for a solution that will run server side (or on the client with jQuery) so i can set it and forget it during development - and get told when I have issues without having to run a tool all the time.


All this tag soup stuff scares me with ASP.NET MVC !!

I'd be less scared if I could validate each and every view coming out of my view generator for XHTML compliance. This is especially important with the amount of jQuery I am planning on writing. i dont want to spend hours debugging something just to find out I had an unclosed tag somewhere that prevented a selector from working.

What options are there for this. Off the top of my head I'm looking for solutions like the following, but not sure which of these are practical:

All options welcome answers !

I'd prefer a server side technology so during debugging I can throw a hard exception, and in production I can log any errors. It must validate the full page after the master page has been applied. Looking for warnings in the IDE is not a good enough solution!

Upvotes: -2

Views: 216

Answers (3)

Kieron
Kieron

Reputation: 27127

As Jeremy said, the W3C validator is out there, but on a side note to check for the accessibility of your views/ site you can you TAW.

I realise this is slightly off topic, but it's still in an important part of web-site development.

Upvotes: 0

Jeremy French
Jeremy French

Reputation: 12187

w3c html validator is avalable as source so you can download it and do prety much anything you want with it. You could set it up with a list of URLs to constantly crawl your test server and log any errors.

Upvotes: 0

Ionuț G. Stan
Ionuț G. Stan

Reputation: 179199

As a plugin there's HTML Validator for Firefox.

Upvotes: 2

Related Questions