views:

394

answers:

4

I have a rails project with a lot of duplicate id's (it looks like id's were used like class should have been used), so obviously this is bad.

I need to refactor everything to get rid of the duplicate id's, and need some addon for Firefox (ideally) to validate the page as I view it to ensure there are no duplicate id's, since it's not something I want to chalk up to "look at each page by hand".

Is there an addon or other tool that will allow me to do this? (I have checked through the firefox addons, and found nothing that really works, they all just redirect to the w3 validator, which I can't use, since the app is local).

EDIT: I should have mentioned, I want this on Linux. HTML Validator does not work on Linux

+1  A: 

The Web Developer extension should allow you to validate local HTML.

Right-click -> Web Developer -> Tools -> Validate Local HTML (Ctrl + Shift + A)

Chris Doggett
+3  A: 

Install the Web Developer Toolbar, restart your browser and press control+shift+a

Oli
Awesome. This is win!
Daniel Huckstep
+5  A: 

Or use HTML Validator, it can even clean your code up using WWWC's Tidy.

Henri Watson
I looked at it, but doesn't run on Linux :(
Daniel Huckstep
It only works on OS X.But since he didn't supply his OS, I just recommended this.
Henri Watson
+1  A: 

Total Validator works well, too.

ajm