Skip to content

Resetting forms on document reactivation #9019

Open
@fergald

Description

@fergald

The HTML Spec says for reactivation that fields with autocomplete=off should be reset.

This is the only instance in the spec of a reset being triggered like this. All other sources of resets are from calls to reset() in JS or from reset buttons. Authors of pages that have no reset button might be surprised that resets can still occur. and only listen for change events Such a page could have its JS state get out of sync with the form state, making this a potential source of hard to repro bugs.

It also seems that Chrome and Mozilla do not implement the spec but Safari does.

I don't have a great suggestion for what to do instead, just

You can test the behaviour of browsers with https://textarea-autocomplete-bug.glitch.me/

@mfreed7 @domenic @rakina

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions