Phenomenon
When applying bold formatting to text in a list item and then pressing Enter to create a new list item, the bold formatting is lost. The new list item does not have bold formatting.
Reproduction example
- Create a list:
<ul><li><b>Bold item</b></li></ul> - Place cursor at the end of “Bold item”
- Press Enter
Observed behavior
- New list item is created
- Bold formatting is not applied to new item
- Formatting is lost
- User must reapply formatting
Expected behavior
- Bold formatting should persist in new list item
- Or formatting should be explicitly cleared
- Behavior should be consistent
- User should understand when formatting persists
Browser Comparison
- Chrome/Edge: Formatting may persist or be lost inconsistently
- Firefox: Formatting is lost (this case)
- Safari: Formatting behavior most inconsistent
Notes and possible direction for workarounds
- Intercept Enter key in list items
- Preserve formatting when creating new items
- Or explicitly clear formatting if desired
- Document formatting persistence behavior