Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.3
-
None
Description
When you exit an Inline Task list in Chrome, a <div/> is created instead of a <p/>.
Steps to reproduce:
- Type a paragraph
- Type [] then the title of an inline task
- Type Enter
- Type Enter
- It looks like you're editing a paragraph, but it's actually a <div/>.
However, I've noticed it doesn't happen on this page: https://pug.jira.com/wiki/pages/editpage.action?pageId=114819082 , but it does if you erase its contents and type an Inline Task List from scratch.
Results:
- When you create a new Inline Task list again, it sticks to the last paragraph (no space before the line)
- If I fix numChildren == 0 ? true : numChildren == 1 && (li.firstChild.tagName == '' || li.firstChild.tagName == 'BR' || li.firstChild.nodeValue == "\uFEFF" || isEmptyIE9Li(li)) into li.textContent.trim().length == 0,
- Both would create the 2nd paragraph with a span & br inside. FF would put _moz_dirty="" in it.
- FF has a little problem with the 2nd list. It applies a zero height and makes it become a ghost element if you don't type immediately.
- Chrome, when adding the 2nd list, would remove it and come back to the previous paragraph.
Hydracode.