title: jQuery Data vs Attr?
body: <p>What is the difference in usage between <code>$.data</code> and <code>$.attr</code> when using <code>data-someAttribute</code>?</p>
  
  <p>My understanding is that <code>$.data</code> is stored within jQuery's <code>$.cache</code>, not the DOM. Therefore, if I want to use <code>$.cache</code> for data storage, I should use <code>$.data</code>. If I want to add HTML5 data-attributes, I should use <code>$.attr("data-attribute", "myCoolValue")</code>.</p>