So, I’ve found the issue – there’s a missing closing div before form. https://gist.github.com/bodrovis/bf42291655d35b1358cfe328145161bb – please check out the line 22. There should be a closing div (to match div on line 5) but there’s none. That’s why all polls below this one are being nested… This only happens for guest users who are not permitted to vote. I’ve also added a custom CSS class to my poll with the corresponding option, if that matters.
Is it somehow related to the hidden inputs being rendered outside the form tag? I’m talking about these:
<input type=hidden id=ays_finish_poll name=ays_finish_poll value=8856b8427c><input type=hidden name=_wp_http_referer value=/><input type=hidden id=ays_finish_poll name=ays_finish_poll value=8856b8427c><input type=hidden name=_wp_http_referer value=/>