Honeypot input sometimes visible (with broken HTML)
Summary
In a significant number of page loads the honeypot input is visible and produces incorrect HTML.
Reproduction steps + Current behaviour
- Create a common profile for standalone use e.g. a simple subscription form adding a contact.
- Enable the honeypot feature and use profile in create mode.
- Reload the page until you see the honeypot field.
Here a screenshot of the form:
...and how it looks like in the inspector:
Another Example (here the input was above the form):
As obvious the HTML then might produce further problems...
Expected behaviour
Correct HTML with input invisible.
Environment information
Tested on both Wordpress and Drupal and both Firefox and Chromium:
- CiviCRM: 5.45.1, Wordpress: 5.9
- CiviCRM: 5.40.4, Drupal: 7.81
- Browser: Firefox 97.0 (Linux)
- Browser: Chromium 98.0.4758.102 (Linux)
Edited by Andreas