Skip to content

Browser autocorrect replaces contents of form fields with garbage #8053

@geldot

Description

@geldot

The Safari browser has intrusive autocomplete enabled by default, while Chromium browsers also have spellcheck enabled for form fields unless you opt out.

In Safari in particular, it's almost impossible to type in package names as they get replaced with English dictionary words. This issue exists to some extent in Chrome too, where values like SSH key signatures are underscored as spelling mistakes.

This results in misconfigurations, often without the user noticing.

The solution is to add the spellcheck="false" attribute to the root DOM element. This disables both autocorrect and spelling underlines in WebKit-based and Chromium-based browsers. (Testing suggests there's no need to do it on a per-field basis as it bubbles down the DOM). (It also prevents what the user types from transmission to cloud spellchecking services, which is sometimes cited as a security issue.)

Optionally, to preserve the functionality where it makes sense, like Optional, free-form notes about this device under General Settings, a new prose datatype or flag could be introduced to selectively re-enable spellchecking by opting in to the spellcheck attribute selectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions