tags:

views:

54

answers:

3

Is there any deprecated elements and properties checker (according to w3c) like w3c validator?

A: 

Set a Strict doctype and run it through the W3C validator, it should trip up hard on deprecated elements (if it's in Transitional/Frameset and not in Strict, it's deprecated.)

Edit: If you are using XHTML, you can use a standard issue XML validator with the XHTML 1.1 or 1.0 Strict DTD.

Williham Totland
There is a strong correlation between "Not in Strict" and "Deprecated" but it isn't 100%. e.g. `iframe` is not in Strict but isn't deprecated either.
David Dorward
Actually, it is. XFrames are thought to (eventually) replace frames in HTML. frameset, frame, iframe etc. should be considered deprecated (small d), and at any rate considered a Bad Thing™ (big B, big T).
Williham Totland
+2  A: 

I don't know of any checker that lists them for you, but the Web Developer Toolbar from Firefox does that under the "Outline » Outline Deprecated Elements" command. Whait it does is, well, visually outline the faulty elements in your page.

You can also check which elements/attributes are deprecated in HTML. W3C is a great place to start: http://www.w3.org/TR/html4/index/elements.html

Same goes for XHTML, Google will gladly provide URLS for checking the deprecated list of elements and attributes.

Of course, you can always validate with the W3C validators and check the error messages for "deprecated" when using a strict doctype.

I'd provided the links, but as I'm a new user, I'm only allowed one link per post. ;p

DenisBoudreau