问题描述
什么是使用
首先,弃用的元素通常不会最好的元素使用。
其次,它们可能会在未来的浏览器中消失。 (是否是一个复杂的问题。)
由于这些原因,您应该避免使用已过时的功能。这不是一切代价,因为弃用的功能几乎从来不是做某事的最好方式。
是否值得更改现有产品是另一个题。大多数网站以后会出于其他原因需要修订,并且可以包括删除不推荐使用的元素。很多人会因为各种原因,在任何不支持它们的浏览器之前很久就被移除。
但是,你在谈论一个工具,这是不同的。工具应该比最终产品更严格,因为它不仅影响今天的工作,而且影响到无限期的未来,从而增加问题的机会。我想说,该工具需要更改。
What are cons to using deprecated elements if I don't care about validation and I use that DTD which supports them? Will deprecated elements will not be rendered by future browsers?
Some online WYSIWYG editors (which we use in CMS) still give output in deprecated elements. Must I invest the time to change the output for a client?
Should we avoid deprecated elements at any cost?
Currently all mainstream browsers show all deprecated elements.
I just wanted to know the disadvantages of using deprecated elements to give to a non technical client even if all are working today in all browsers.
Update:
I found this in this article http://accessites.org/site/2006/06/the-wcag-20-what-a-whopper/
First, deprecated elements are usually not the best elements to use. They are generally deprecated for a reason, as there are better ways to do it.
Second, they could go away in future browsers. (Whether they will is a complicated question.)
For these reasons, you should always avoid deprecated functionality. It isn't a matter of avoiding it at all costs, since deprecated functionality is almost never the best way of doing something.
Whether it's worth changing an existing product is another question. Most web sites will need revision for other reasons later on, and that can include removing deprecated elements. Many will be removed from the web (for various reasons) long before any browser that doesn't support them gains popularity.
However, you're talking about a tool, and that's different. A tool should be more strict than an end product, since it affects not only today's work but work extending into the indefinite future, thereby raising the chances for problems. I'd say that the tool needs to be changed.
这篇关于将来会从浏览器中删除已弃用的元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!