케이스 ce-0128-nested-formatting-removal-ko · 시나리오 scenario-nested-formatting

중첩 서식 제거가 빈 또는 부분 요소를 남김

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

현상

중첩 서식이 있는 텍스트(예: <b><i>text</i></b>)에서 서식을 제거할 때 빈 또는 부분 서식 요소가 DOM에 남을 수 있습니다. 구조가 깨집니다.

재현 예시

  1. 텍스트에 굵게와 기울임꼴을 적용합니다: <b><i>formatted text</i></b>
  2. 굵게 서식을 제거합니다
  3. DOM 구조를 관찰합니다

관찰된 동작

  • <b></b> 요소가 남을 수 있습니다
  • 또는 부분 중첩이 남을 수 있습니다: <b><i>text</i></b><i>text</i>가 되지만 <b> 래퍼가 남을 수 있음
  • DOM 구조가 깨집니다
  • 빈 요소가 누적됩니다

예상 동작

  • 서식이 깨끗하게 제거되어야 합니다
  • 빈 요소가 남지 않아야 합니다
  • 구조가 정규화되어야 합니다
  • DOM이 깨끗해야 합니다

브라우저 비교

  • Chrome/Edge: 빈 요소를 남길 수 있음 (이 케이스)
  • Firefox: 빈 구조를 남길 가능성이 더 높음
  • Safari: 깨진 구조를 남길 가능성이 가장 높음

참고 및 해결 방법 가능한 방향

  • 제거 후 서식 구조 정규화
  • 빈 서식 요소 제거
  • 중첩 구조 병합 또는 언래핑
  • DOM을 정기적으로 정리

이 시나리오의 변형

케이스 OS 브라우저 상태
ce-0112-nested-formatting-complex-ko Windows 11 Chrome 120.0 초안
ce-0128-nested-formatting-removal-ko Windows 11 Chrome 120.0 초안
ce-0160-nested-formatting-order-inconsistent-ko Windows 11 Safari 17.0 초안

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