Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-26488

Chrome + Inline Tasks: Enter+Enter creates a <div/>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.3.1
    • 4.3
    • None

    Description

      When you exit an Inline Task list in Chrome, a <div/> is created instead of a <p/>.

      Steps to reproduce:

      1. Type a paragraph
      2. Type [] then the title of an inline task
      3. Type Enter
      4. Type Enter
      5. 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.

      Attachments

        Activity

          People

            cpetchell Petch (Inactive)
            aragot AdrienA (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: