์ผ€์ด์Šค ce-0063 ยท ์‹œ๋‚˜๋ฆฌ์˜ค scenario-required-validation

required attribute is not supported for validation

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

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

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

Phenomenon

The required attribute, which works on form inputs to indicate mandatory fields, is not supported on contenteditable regions. There is no built-in way to mark a contenteditable as required for form validation.

Reproduction example

  1. Create a contenteditable div with required attribute inside a form.
  2. Try to submit the form without entering content.
  3. Observe whether validation occurs.

Observed behavior

  • In Chrome on macOS, the required attribute is ignored on contenteditable.
  • Form validation does not check contenteditable regions.
  • No built-in validation exists.

Expected behavior

  • The required attribute should work on contenteditable.
  • Form validation should check contenteditable regions.
  • Or, there should be a standard way to validate contenteditable content.

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: Chrome 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.