์ผ€์ด์Šค ce-0061 ยท ์‹œ๋‚˜๋ฆฌ์˜ค scenario-language-attribute

lang attribute does not affect spellcheck language

OS: macOS Ubuntu 22.04 ๊ธฐ๊ธฐ: Desktop or Laptop Any ๋ธŒ๋ผ์šฐ์ €: Safari 120.0 ํ‚ค๋ณด๋“œ: US ์ดˆ์•ˆ
langspellchecklanguagesafari

์ด ํŽ˜์ด์ง€๋Š” ์•„์ง ๋ฒˆ์—ญ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค

ํ˜„์žฌ ์˜์–ด ์›๋ฌธ์„ ํ‘œ์‹œํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒˆ์—ญ์— ๊ธฐ์—ฌํ•ด ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Phenomenon

The lang attribute on a contenteditable region does not affect the spellcheck language in Safari. Spellcheck always uses the browserโ€™s default language, regardless of the lang attribute value.

Reproduction example

  1. Create a contenteditable div with lang="fr" and spellcheck="true".
  2. Type French text.
  3. Observe whether spellcheck uses French dictionary.

Observed behavior

  • In Safari on macOS, the lang attribute does not affect spellcheck.
  • Spellcheck always uses the browserโ€™s default language.
  • Multi-language content cannot be properly spellchecked.

Expected behavior

  • The lang attribute should control the spellcheck language.
  • Spellcheck should use the appropriate dictionary for the specified language.
  • Multi-language content should be properly supported.

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: macOS Ubuntu 22.04
Device: Desktop or Laptop Any
Browser: Safari 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.