<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Find the vendor prefix of the current browser</title>
	<atom:link href="http://lea.verou.me/2009/02/find-the-vendor-prefix-of-the-current-browser/feed/" rel="self" type="application/rss+xml" />
	<link>http://lea.verou.me/2009/02/find-the-vendor-prefix-of-the-current-browser/</link>
	<description>Life at the bleeding edge (of web standards)</description>
	<lastBuildDate>Fri, 10 Feb 2012 07:25:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ivanov</title>
		<link>http://lea.verou.me/2009/02/find-the-vendor-prefix-of-the-current-browser/#comment-3365</link>
		<dc:creator>Ivanov</dc:creator>
		<pubDate>Thu, 30 Jun 2011 11:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://leaverou.me/?p=48#comment-3365</guid>
		<description>Why not to get prefix for specific property ?

  function getVendorPrefix(property) {
    function up(p, a) { 
      return a.toUpperCase();
    }
    var div = document.createElement(&#039;div&#039;);
    var x = &#039;Khtml Moz Webkit O ms &#039;.split(&#039; &#039;), i;
    for (i = x.length-1; i &gt;= 0; i--) {
      if (((x[i] ? x[i] + &#039;-&#039; : &#039;&#039;) + property).replace(/-(w)/g, up) in div.style) {
        return x[i] ? &#039;-&#039; + x[i].toLowerCase() + &#039;-&#039; : &#039;&#039;; // empty string, if it works without prefix
      }
    }
    return null;// not found...
  }
</description>
		<content:encoded><![CDATA[<p>Why not to get prefix for specific property ?</p>
<p>  function getVendorPrefix(property) {<br />
    function up(p, a) {<br />
      return a.toUpperCase();<br />
    }<br />
    var div = document.createElement(&#8216;div&#8217;);<br />
    var x = &#8216;Khtml Moz Webkit O ms &#8216;.split(&#8216; &#8216;), i;<br />
    for (i = x.length-1; i &gt;= 0; i&#8211;) {<br />
      if (((x[i] ? x[i] + &#8216;-&#8217; : &#8221;) + property).replace(/-(w)/g, up) in div.style) {<br />
        return x[i] ? &#8216;-&#8217; + x[i].toLowerCase() + &#8216;-&#8217; : &#8221;; // empty string, if it works without prefix<br />
      }<br />
    }<br />
    return null;// not found&#8230;<br />
  }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

