Bug 214493 - spellcheck="false" on text input element prevents text replacement
Summary: spellcheck="false" on text input element prevents text replacement
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari 13
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-07-17 12:49 PDT by Jeff Johnson
Modified: 2024-07-15 08:57 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Johnson 2020-07-17 12:49:05 PDT
Overview:
If an HTML <input> element has the attribute spellcheck="false", this disables macOS text replacement System Preferences. A very prominent example is the Google Search field.

Steps to reproduce:
1) Open System Preferences, Keyboard pane, Text tab
2) Create a new text replacement, Replace :cmd: With ⌘
3) In Safari, open https://www.google.com
4) In the search field, enter :cmd: and then spacebar

Expected results:
:cmd: is replaced by ⌘

Actual results:
:cmd: is not replaced

Versions:
Safari Version 13.1.2 (14609.3.5.1.5), macOS Version 10.14.6

Additional Information:
Text replacement does work as expected on https://duckduckgo.com, where spellcheck is not disabled on the search field.
Comment 1 Radar WebKit Bug Importer 2020-07-18 10:46:15 PDT
<rdar://problem/65770827>
Comment 2 Jeff Johnson 2024-07-15 08:57:01 PDT
This bug also affects contenteditable="true" spellcheck="false" <div> elements, such as in the gmail.com email composition window body.