4 ms·
Seems that if you use this, your documents won't be able to be considered 'valid' by validators (tested on the w3 validator). Unless, perhaps, you just mark yo
by mgkimsal 15y ago
Seems that if you use this, your documents won't be able to be considered 'valid' by validators (tested on the w3 validator). Unless, perhaps, you just mark your doctype as html and be done with it?
- akmiller 15y agoExactly, I wonder why they wouldn't incorporate the data-* attributes to help describe this data AND conform to HTML5 specifications.
- wycats 15y agoLooks like they're using HTML5 microdata: http://dev.w3.org/html5/md/ http://dev.w3.org/html5/md/
- famfamfam 15y agoThe HTML data-* attributes are intended for private data only; i.e., to store data to be used as configuration for a Javascript plugin but which does not hold semantic value and cannot be represented as actual content, whereas microdata (which is what theyre using and is also part of the HTML5 specification) is meant only for describing how the content of the page maps to some schema.
- blauwbilgorgel 15y agoWhich format and scheme, with which doctype did you use to get invalid results in the validator? Microformats should never invalidate any doctype as they are just class-names. Microdata can be used in valid HTML5 doctype pages. RDFa can be used in valid xHTML+RDFa doctype pages.
- gnaritas 15y ago> Seems that if you use this, your documents won't be able to be considered 'valid' by validators Why would I care? What matters to me is that Google gets people to my site.
- mgkimsal 15y agosome tools will throw out misleading errors on 'invalid' markup, and you will have to spend time justifying to clients why these invalid markups are OK. accessibility tools might have problems (not sure now, but I remember some tools years ago having problem on some invalid markup).