Improved HTML check to accept placeholder attributes.