You can follow this pattern:
a:not([href])
input:not([type])
The attribute selector is used to select elements with the specified attribute.
:not
is supported in all modern browsers and IE9+, if you need IE8 or lower support you’re out of luck.