Phenomenon
When applying formatting (bold, italic, etc.) to text inside a blockquote in Firefox, the blockquote structure may break. The blockquote may be removed or converted to regular paragraphs.
Reproduction example
- Create a blockquote:
<blockquote><p>Quoted text</p></blockquote> - Select text inside the blockquote
- Apply bold formatting
Observed behavior
- Blockquote structure may be broken
- Blockquote may be converted to paragraphs
- Formatting is applied but structure is lost
- DOM structure becomes:
<p><b>Quoted text</b></p>
Expected behavior
- Blockquote structure should be maintained
- Formatting should be applied within blockquote
- Blockquote should remain as
<blockquote> - Structure should not break
Browser Comparison
- Chrome/Edge: Generally maintains structure
- Firefox: More likely to break structure (this case)
- Safari: Most likely to break structure
Notes and possible direction for workarounds
- Intercept formatting in blockquote context
- Apply formatting within blockquote structure
- Preserve blockquote during formatting
- Normalize structure after formatting