Currently I am using this code with HTMLPurifier to allow data-* HTML tag attributes:
data-*
$def = $config->getHTMLDefinition(true); $def->a
Nope, it's not possible without modifying the validate attributes strategy.