title: Why don't changes to jQuery $.fn.data() update the corresponding html 5 data-* attributes?
body: <p>Here's a simple example to illustrate the behavior:</p>
  
  <p>Given this html markup:</p>
  
  <pre><code>&lt;div data-company="Microsoft"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>and this jQuery code (using jQuery 1.5.1):</p>
  
  <pre><code>// read the data
  alert($("div").data("company"));
  // returns Microsoft &lt;&lt;&lt; OK!
  
  // set the data
  $("div").data("company","Apple");
  alert($("div").data("company"));
  // returns Apple &lt;&lt;&lt; OK!
  
  // attribute selector
  alert($("div[data-company='Apple']").length);
  // returns 0  &lt;&lt;&lt; WHY???
  
  // attribute selector again
  alert($("div[data-company='Microsoft']").length);
  // returns 1  &lt;&lt;&lt; WHY???
  
  // set the attribute directly
  $("div").attr("data-company","Apple");
  alert($("div[data-company='Apple']").length);
  // now returns 1 &lt;&lt;&lt; OK!
  </code></pre>
  
  <p>Since jQuery automatically imports the HTML5 data-* into jQuery's data object, shouldn't the attributes be updated as well when the data changes? </p>