[Webkit-unassigned] [Bug 190776] New: [iOS][WK1] Spelling correction dots do not show unless you focus editable content and then defocus it

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 20 14:17:03 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=190776

            Bug ID: 190776
           Summary: [iOS][WK1] Spelling correction dots do not show unless
                    you focus editable content and then defocus it
           Product: WebKit
           Version: WebKit Local Build
          Hardware: iPhone / iPad
                OS: iOS 12
            Status: NEW
          Keywords: PlatformOnly
          Severity: Normal
          Priority: P2
         Component: WebKit Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org
                CC: rniwa at webkit.org, wenson_hsieh at apple.com

Consider a page with the following markup

[[
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<style>
    p {
        border: 1px solid black;
        height: 300px;
        width: 200px;
    }
</style>
</head>
<body>
<p id="test" contenteditable="true"></p>
<script>
    let test = document.getElementById("test");
    test.focus();
    document.execCommand("InsertText", false, "the the mispelled");
    document.execCommand("InsertText", false, " "); // Trigger spelling and grammar checking
</script>
<button>Spell check</button>
</body>
</html>
]]

If you focus the editable field we do not show spelling correction dots. If you type more misspelled words we also do not show spelling correction dots. (Notice that tapping "mispelled" turns it red and shows a callout with suggested replacements. (*)) If you click Done to dismiss the keyboard we do not show spelling correction dots. We only start showing spelling correction dots if you focus the editable field then click "Spell check".

This bug was mentioned in <https://stackoverflow.com/questions/46347640/how-to-make-the-spellcheck-work-on-uiwebview>, <https://stackoverflow.com/questions/49274812/spellcheck-is-not-working-in-uiwebview-ios>, and <https://stackoverflow.com/questions/7927605/how-to-activate-spellchecking-for-a-contenteditable-div-in-a-uiwebview>.

(*) Raised in <https://stackoverflow.com/questions/25440134/spellcheck-for-input-in-uiwebview-is-stopped-working>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181020/076582e5/attachment.html>


More information about the webkit-unassigned mailing list