Valid DOCTYPE ... custom attributes and custom markup

Well, don’t get me wrong, I absolutely adore the idea of ​​web standards ... I wrote and checked several pages with strict XHTML 1.0 - however, the network is developing ... and the more I use XML, implement the DOM capacity, and implement most browsers do not worried, anyway, the more I understand that I understand that I just want to break the agreement and start using custom attributes.

An example of this is on my current site, which uses the message attribute for a number of elements, and jQuery to match these types of elements and update the footer message (something like a static tooltip). The problem, of course, is that ... it is not actually supported.

My question then is simply that there is something a wider spectral doctype that would allow me to use 99% of the XHTML and / or HTML5 standard, but insert some custom attributes?

Or am I just continuing to break the validation and curse it because the browser and javascript will "get" anyway?

+5
source share
2 answers

DTD XML , DTD , . . A List Apart DTD DTD , DTD. , DTD, , " " - , XHTML.

+3

HTML5, , "data-", HTML5.

. XHTML 1.x validation ( doctype) ( ) , XHTML , , .

+3

All Articles