pub fn dirty_form(html: &str) -> bool
Whether a form renders dirty, so leaving the page asks first: a refused save keeps what the user typed, and the server marks its form with data-form-dirty.
data-form-dirty