mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-04-18 12:01:20 +02:00
When HTML containing <li> elements without a wrapping <ul> or <ol> is pasted (e.g., from ChatGPT), the contentcollector crashes with "TypeError: lineAttributes.list is undefined" because it assumes _enterList() was already called by a parent list element. The fix defaults bare <li> elements to bullet1 list type and properly sets oldListTypeOrNull so the list state is cleaned up after the <li> is processed. Also guards the .indexOf() call on lineAttributes.list. Fixes: https://github.com/ether/etherpad-lite/issues/6665 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ignore this file and see the file in the base installation folder