Comments on: HTML5 Custom Data Attributes (data-*) https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/ helping you implement HTML5 today Sat, 19 Nov 2016 07:03:11 +0000 hourly 1 By: manojkumar https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-2055187 Tue, 10 Nov 2015 12:25:02 +0000 http://html5doctor.com/?p=1874#comment-2055187 s there any guideline for consuming RDFa in XHTML5?
As per my limited understanding, DOCTYPE is ignored within these files, version attribute is deprecated. I’m using within head tag.
The property attribute is used by creative commons license I’m placing at the file’s footer.

]]>
By: gautham https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-48774 Sat, 22 Mar 2014 12:40:15 +0000 http://html5doctor.com/?p=1874#comment-48774 isn’t using/storing data values in html markup a bad design?
so if we consider things like single responsibility principle(not like a design pattern that it is,but like a word of wisdom),aren’t we messing up with what HTML is designed to do???

]]>
By: jhonatan https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-43930 Wed, 01 Jan 2014 19:42:51 +0000 http://html5doctor.com/?p=1874#comment-43930 hello, I’m using custom data attribute to loading posts content with JavaScript without an Ajax query.

EX:


<a href="#" rel="nofollow">load content</a>

am i wrong if I put html content in the data attribute?? please I have this doubt

could it be that a SEO trouble??

thanks!

]]>
By: Matt https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-37406 Mon, 12 Aug 2013 14:39:43 +0000 http://html5doctor.com/?p=1874#comment-37406 http://caniuse.com/#search=dataset

]]>
By: Ben Racicot https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-37337 Thu, 08 Aug 2013 14:49:50 +0000 http://html5doctor.com/?p=1874#comment-37337 Can we use the new dataset selector yet?!

]]>
By: Martin Rohwedder https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-34543 Thu, 16 May 2013 15:13:01 +0000 http://html5doctor.com/?p=1874#comment-34543 Nice explanation thank you!

]]>
By: programaths https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-34251 Thu, 09 May 2013 10:13:56 +0000 http://html5doctor.com/?p=1874#comment-34251 @BJ,

Expando properties and “data-*” attributes aren’t quite the same thing.

if someone write :

<div src="image.png"></div>

How can the validators/engines knows that the author didn’t want to write

<img src="image.png">

With “data-*” attributes, it’s possible to know the Author’s intention.

If someone write:

<div data-src="image.png"></div>

He probably meant it.

That’s how Microsoft got wrong and continue to be.
Admitingly, expando properties were a good idea (On the implemenation side, it means LESS validation required) but not as good than requiring “data-” prefix.

Also, imagine than in HTML6, divs can take a “src” attribute to load asynchronous content. (Eg. you are rendering something complex so you want the user to not wait in front of a blank page)
Without the “data-” attribute, you can’t simply change your doctype to “html6”, it makes migration harder.

With the “data-*” attribute you are certain that your html website won’t be broken because the spec did add a new attribute.

]]>
By: Pierre-Adrien https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-31696 Sat, 23 Feb 2013 13:59:02 +0000 http://html5doctor.com/?p=1874#comment-31696 I noticed this kind of fields when dealing with Rails projects, but did not find time to investigate this at the moment. I’m glad I did today, thanks for this really helpful article.

]]>
By: Ventura Rodríguez https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-31522 Wed, 13 Feb 2013 17:50:14 +0000 http://html5doctor.com/?p=1874#comment-31522 I’m starting with HTML5 and the truth is I did not know this label. Apparently it is very últil, the study it thoroughly to use it in my next projects.

]]>
By: DAL https://stevefaulkner.github.io/html5doctored/html5-custom-data-attributes/#comment-30502 Thu, 24 Jan 2013 18:00:57 +0000 http://html5doctor.com/?p=1874#comment-30502 Hello all

I am a professionnal programmer and i am now switching to html5 and App building…

So far so good, but i have one small problem i cannot seems to be able to solve.

I want to simply:

read a remote text file on my server
read the file by lines
localstore by pairs

period… simple right? well, i found about 20 different answers online, none works.

Where can i find a REAL answer?

How does game makers do to upload a dictionnary of words for example in a mobile device in pairs?

Thanks

]]>