Version targeting
In computing, version targeting is a technique that allows a group of (presumably knowledgeable) users (including software developers) to utilise some advanced software features that were introduced in a particular software version while allowing users accustomed to the prior versions to still utilise the same software as if the new features were never added to the software. It is a way to ensure backwards compatibility when new software features would otherwise break it.
The term version targeting is mostly applied in the context of Web browsers, although the concept is not limited to any specific kind of software application. In Web browsers, a DOCTYPE declaration serves a similar purpose.
In Mozilla Firefox
Version targeting has been used in Mozilla Firefox[1] when it introduced JavaScript 1.6 in Firefox 1.5[2] and JavaScript 1.7 in Firefox 2.0:[3] developers willing to use the new scripting engine had to explicitly opt-in.[1]
Use in Internet Explorer
Version targeting was proposed by Microsoft for use in its Internet Explorer 8 product-in-development, but the idea was later discarded.[4][5]
The proposal came after the release of Internet Explorer 7 which improved its CSS 2.1 support[6] at the cost of causing some websites that were developed for Internet Explorer 6 to be rendered incorrectly when viewed with the new browser version.[7][8]
Microsoft contacted the Web Standards Project and experts on Web standards and asked for assistance in devising a new DOCTYPE-like technique that could work across browsers and let Web developers specify exact browser versions under which their Web sites are known to work correctly, and browsers implementing this form of version targeting would utilise the correct rendering engine versions to display the site correctly.[7] Members of the WaSP Microsoft Task Force were involved in the proposal, albeit not every member backed it.[9]
Some commentators suggested that it would be possible to use Internet Explorer 8's support for new DOCTYPEs in order to avoid using its version targeting meta tag.[10]
Criticism
The concept of version targeting, especially as proposed by Microsoft, has been criticised for being a new form of browser sniffing and for violating the principle of forward-compatible development where progressive enhancement is preferred.[11]
Version targeting has been criticised for not giving incentives to developers to plan ahead for forward compatibility.[11]
Positive reception
Version targeting has been welcomed by some people as a means to enable browsers to adopt Web standards without breaking compatibility with Web sites depended on old rendering engines for their functionality.[12]
References
- 1 2 http://www.alistapart.com/articles/minorthreat
- ↑ https://developer.mozilla.org/en/New_in_JavaScript_1.6
- ↑ https://developer.mozilla.org/en/New_in_JavaScript_1.7#Using_JavaScript_1.7
- ↑ http://blogs.msdn.com/ie/archive/2008/03/03/microsoft-s-interoperability-principles-and-ie8.aspx
- ↑ http://www.sitepoint.com/blogs/2008/03/04/microsoft-backflips-on-browser-version-targeting/
- ↑ http://msdn.microsoft.com/en-us/library/bb250496.aspx
- 1 2 http://www.alistapart.com/articles/beyonddoctype
- ↑ http://www.etre.com/blog/2006/10/ie7_were_they_ready/
- ↑ "Archived copy". Archived from the original on October 2, 2008. Retrieved September 2, 2008.
- ↑ http://ejohn.org/blog/html5-doctype/
- 1 2 http://www.alistapart.com/articles/fromswitchestotargets
- ↑ http://www.zeldman.com/2008/01/22/in-defense-of-version-targeting/