version targeting
In computing, version targeting is a technique that allows a group of (presumably knowledgeable) users (including software developers) to use some advanced software features that were introduced in a particular software version while allowing users accustomed to the prior versions to still use the same software as if the new features were never added to the software. It is a way to ensure backward compatibility when new software features would otherwise break it.
In Mozilla Firefox
Version targeting has been used in Mozilla Firefox{{Cite web|url=http://www.alistapart.com/articles/minorthreat|title = Version Targeting: Threat or Menace?|date = 19 February 2008}} when it introduced JavaScript 1.6 in Firefox 1.5{{cite web |url=https://developer.mozilla.org/en/New_in_JavaScript_1.6 |title=New in JavaScript 1.6 - Mozilla Developer Center |website=developer.mozilla.org |url-status=dead |archive-url=https://web.archive.org/web/20080823164902/http://developer.mozilla.org/en/New_in_JavaScript_1.6 |archive-date=2008-08-23}} and JavaScript 1.7 in Firefox 2.0:{{cite web |url=https://developer.mozilla.org/en/New_in_JavaScript_1.7#Using_JavaScript_1.7 |title=New in JavaScript 1.7 - Mozilla Developer Center |website=developer.mozilla.org |url-status=dead |archive-url=https://web.archive.org/web/20080822230410/http://developer.mozilla.org/en/New_in_JavaScript_1.7 |archive-date=2008-08-22}} developers willing to use the new scripting engine had to explicitly opt-in.
Use in Internet Explorer
{{Main article|Internet Explorer 8#Compatibility mode}}
Version targeting was proposed by Microsoft for use in its Internet Explorer 8 product-in-development, but the idea was later discarded.{{Cite web|url=http://blogs.msdn.com/ie/archive/2008/03/03/microsoft-s-interoperability-principles-and-ie8.aspx|title=IEBlog|date=17 July 2020 }}{{Cite web|url=http://www.sitepoint.com/blogs/2008/03/04/microsoft-backflips-on-browser-version-targeting/|title = Microsoft Backflips on Browser Version Targeting - SitePoint|date = 4 March 2008}}
The proposal came after the release of Internet Explorer 7 which improved its CSS 2.1 support{{cite web|title=Cascading Style Sheet Compatibility in Internet Explorer 7|url=http://msdn.microsoft.com/en-us/library/bb250496.aspx|first1=Markus|last1=Mielke|first2=Dave|last2=Massy|website=Microsoft Developer Network|publisher=Microsoft|date=2006-01-31|accessdate=2016-12-26}} 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.{{Cite web|url=http://www.alistapart.com/articles/beyonddoctype|title=Beyond DOCTYPE: Web Standards, Forward Compatibility, and IE8|date=22 January 2008}}{{cite web| url=http://www.etre.com/blog/2006/10/ie7_were_they_ready/ | archive-url=https://web.archive.org/web/20180130004100/http://www.etre.com/blog/2006/10/ie7_were_they_ready/ | archive-date=2018-01-30 | title=IE7: Were they ready? | date=2006-10-26 | access-date=2024-01-03 }}
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 use the correct rendering engine versions to display the site correctly. Members of the WaSP Microsoft Task Force were involved in the proposal, albeit not every member backed it.{{cite web|url=http://www.webstandards.org/2008/01/22/microsofts-version-targeting-proposal/ |title=Microsoft's Version Targeting Proposal - the Web Standards Project |accessdate=September 2, 2008 |url-status=dead |archiveurl=https://web.archive.org/web/20081002045127/http://www.webstandards.org/2008/01/22/microsofts-version-targeting-proposal/ |archivedate=October 2, 2008 }}
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.{{Cite web|url=http://ejohn.org/blog/html5-doctype/|title=John Resig - HTML5 DOCTYPE}}
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.{{Cite web|url=http://www.alistapart.com/articles/fromswitchestotargets|title = From Switches to Targets: A Standardista's Journey|date = 23 January 2008}}
Version targeting has been criticised for not giving incentives to developers to plan ahead for forward compatibility.
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.{{Cite web|url=http://www.zeldman.com/2008/01/22/in-defense-of-version-targeting/|title=In defense of version targeting|date=22 January 2008}}
References
{{Reflist|30em}}
Bibliography
- [http://www.glendathegood.com/wasp/transcript.html WaSP IE8 round table discussion]