When using the xhtml1-transitional.dtd doctype, collecting a credit card number with the following HTML
xhtml1-transitional.dtd
I MADE THIS WORK IN 2020!
I basically create a css class that applies -webkit-text-security to my inputs.
Here's the link to a more recent discussion: https://stackoverflow.com/a/64471795/8754782