Case ce-0116-list-formatting-lost-paste · Scenario scenario-list-formatting-persistence

List structure is lost when pasting formatted content

OS: Windows 11 Device: Desktop or Laptop Any Browser: Chrome 120.0 Keyboard: US Status: draft
list formatting paste chrome

Phenomenon

When pasting formatted content (with bold, italic, etc.) into a list item, the list structure may be broken and list items may be converted to paragraphs. The formatting is preserved but the list structure is lost.

Reproduction example

  1. Create a list: <ul><li>Item 1</li><li>Item 2</li></ul>
  2. Copy formatted text from elsewhere (e.g., bold text)
  3. Paste into a list item

Observed behavior

  • List items may be converted to paragraphs
  • List structure is broken
  • Formatting is preserved but list is lost
  • DOM structure becomes: <p>Item 1</p><p>Item 2</p> instead of list

Expected behavior

  • List structure should be maintained
  • Formatting should be applied within list items
  • List items should remain as <li> elements
  • Structure should not break

Browser Comparison

  • Chrome/Edge: May break list structure (this case)
  • Firefox: More likely to break structure
  • Safari: Most likely to break structure

Notes and possible direction for workarounds

  • Intercept paste event in list context
  • Strip block-level elements from pasted content
  • Preserve list structure
  • Apply formatting within list items only
Before
  • Item 1
  • Item 2
List structure
→
❌ After Paste

Item 1

Bold Text

Item 2

List structure lost, &lt;li&gt; converted to &lt;p&gt;
vs
✅ Expected
  • Item 1
  • Bold Text
  • Item 2
List structure maintained, formatting applied

Browser compatibility matrix

This matrix shows which browser and OS combinations have documented cases for this scenario. The current case is highlighted. Click on a cell to view other cases.

Current case
Confirmed
Draft
— No case documented

All variants (detailed table)

Complete list of all cases for this scenario with full environment details.

Case OS Device Browser Keyboard Status
ce-0116-list-formatting-lost-paste Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0124-list-formatting-bold-lost Windows 11 Desktop or Laptop Any Firefox 120.0 US draft
ce-0163-list-formatting-across-items Windows 11 Desktop or Laptop Any Chrome 120.0 US draft

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.

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.