$.data() vs. $.fn.data() vs. HTML5 data attrib

$.data() vs. $.fn.data() vs. HTML5 data attrib

I have spent time looking at the data() methods internals -- ($.data() vs. $.fn.data().

I noticed that the retrieval for HTML5 attributes is really triggered by $.fn.data() and once retrieved and added to the cache, yes $.data() will have access to it.

I wonder why the trigger to retrieve HTML 5 attributes was not done at the lower-level $.data() method that way it would be trigger by either form of data(). Am I missing something?

ceo