Posts

Showing posts with the label dataset

On element.dataset And data-* Attribute

Why on earth? I mean why we should put a data-whatever attribute into our layout? Where is the good old MVC? How can you consider data-* more semantic? more semantic than what? Why we would like to kill truly semantic pages and graceful enhancements? Why we need JavaScript redundant info inside nodes attributes but we cannot understand a script tag in the middle of the page? Why in the performances matter era we would like to let users download stuff that they will probably never use? What Am I Talking About We can find the " magic " data attribute description in the W3C Semantics, structure, and APIs for HTML documents page. These days there is a page that is going around even too much ... finally somebody realized that this data- thingy is nothing different than what we could have always used since ages: XML . Why We Are Doing Wrong If we are enthusiast about a custom attribute able to bring whatever information, we should ask ourself why on earth we are not using simp...