<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>html5 on Curtis Timson</title><link>https://hugo.curtiscode.dev/tags/html5/</link><description>Recent content in html5 on Curtis Timson</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><lastBuildDate>Tue, 14 May 2013 00:00:00 +0000</lastBuildDate><atom:link href="https://hugo.curtiscode.dev/tags/html5/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding jQuery data() storage</title><link>https://hugo.curtiscode.dev/post/jquery/understanding-jquery-data-storage/</link><pubDate>Tue, 14 May 2013 00:00:00 +0000</pubDate><guid>https://hugo.curtiscode.dev/post/jquery/understanding-jquery-data-storage/</guid><description>It is a common misunderstanding that .data(&amp;quot;key&amp;quot;) is simply a shortcut for .attr(&amp;quot;data-key&amp;quot;).
.data() does read HTML5 data attributes, but this is only the first time it is called, as per the documentation:
The data- attributes are pulled in the first time the data property is accessed and then are no longer accessed or mutated (all data values are then stored internally in jQuery).
After they&amp;rsquo;ve been read once, they are then stored in jQuery&amp;rsquo;s cache object, $.</description></item></channel></rss>