When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML
xhtml1-transitional.dtd
How about setting it with JavaScript?
var e = document.getElementById('cardNumber'); e.autocomplete = 'off'; // Maybe should be false
It's not perfect, but your HTML will be valid.