Bug 214493

Summary: spellcheck="false" on text input element prevents text replacement
Product: WebKit Reporter: Jeff Johnson <opendarwin>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: megan_gardner, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Unspecified   
OS: Unspecified   

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.