케이스 ce-0064-contenteditable-with-pattern-ko · 시나리오 scenario-pattern-validation

pattern 속성이 contenteditable 콘텐츠를 검증하지 않음

OS: Windows 11 기기: Desktop or Laptop Any 브라우저: Firefox 120.0 키보드: US 초안
patternvalidationregexfirefox

현상

양식 입력에서 정규식 기반 검증을 허용하는 pattern 속성이 contenteditable 영역에서 작동하지 않습니다. 콘텐츠를 패턴에 대해 검증할 수 없습니다.

재현 예시

  1. pattern="[0-9]+"(숫자만)이 있는 contenteditable div를 만듭니다.
  2. 숫자가 아닌 문자를 입력합니다.
  3. 검증이 발생하는지 관찰합니다.

관찰된 동작

  • Windows의 Firefox에서 contenteditable의 pattern 속성이 무시됩니다.
  • 검증이 발생하지 않습니다.
  • 잘못된 콘텐츠를 자유롭게 입력할 수 있습니다.

예상 동작

  • pattern 속성이 contenteditable 콘텐츠를 검증해야 합니다.
  • 잘못된 콘텐츠가 거부되거나 표시되어야 합니다.
  • 또는 패턴에 대해 콘텐츠를 검증하는 표준 방법이 있어야 합니다.

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: Windows 11
Device: Desktop or Laptop Any
Browser: Firefox 120.0
Keyboard: US
Your environment
Sample HTML:
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.