Phenomenon
When composing Russian text with Cyrillic IME in a contenteditable element, some Cyrillic characters may not compose correctly, or keyboard layout switching may cause unexpected character insertion.
Reproduction example
- Focus the editable area.
- Activate Russian Cyrillic IME or switch keyboard layout to Russian.
- Type Russian text (e.g., “Привет”).
- Observe character composition and keyboard layout behavior.
Observed behavior
- Some Cyrillic characters may not compose correctly
- Keyboard layout switching may cause unexpected character insertion
- Character encoding issues may occur
- Behavior may differ from native input fields
Expected behavior
- Cyrillic characters should compose correctly
- Keyboard layout switching should work smoothly
- Character encoding should be consistent
- Behavior should match native input fields
Browser Comparison
- Chrome: Generally good support for Cyrillic
- Edge: Similar to Chrome
- Firefox: May have different behavior
- Safari: Not applicable on Windows
Notes and possible direction for workarounds
- Monitor keyboard layout changes
- Handle character encoding carefully
- Validate Cyrillic character composition