Is there any deprecated elements and properties checker (according to w3c) like w3c validator?
Is there any deprecated elements and properties checker开发者_如何学Go (according to w3c) like w3c validator?
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
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.
精彩评论