Opened 8 years ago

# Wysiwyg: Dislikes some nested definitions

Reported by: Owned by: anonymous jun66j5 normal TracWysiwygPlugin normal WYSIWYG definition 0.11

### Description

 * C
l(s)::

* C



results in Failed to activate the wysiwyg editor.

### comment:1 Changed 6 years ago by AdrianFritz

• Keywords WYSIWYG added; Wysiwyg removed

### comment:2 follow-up: ↓ 3 Changed 5 years ago by anonymous

Same error occurs with a table where one cell contains an empty bold text (i.e. '''''').

### comment:3 in reply to: ↑ 2 Changed 5 years ago by jun66j5

Same error occurs with a table where one cell contains an empty bold text (i.e. '''''').

It works for me. What version of tracwysiwyg do you use?

I tried the latest;

1. Input || '''''' || to textarea
3. Wysiwyg editor is shown without errors

### comment:4 Changed 17 months ago by jun66j5

#12450 was closed as duplicate.

### comment:5 Changed 17 months ago by xoneca@…

So, I tried to debug this with the following snippet:

 First def::
- first list
Second def::
- second list


I have tracked the bug to the function handleList() when parsing the second list (last line of that snippet). There the holder is the last dd element, so when calling

list = getSelfOrAncestor(holder, "li");


That returns null and blows at the next line, on appendBogusLineBreak().

### comment:6 Changed 17 months ago by xoneca@…

Tried also the snippet in the ticket description and fails in the same function, but this time holder is a DocumentFragment element.