Project

General

Profile

Actions

Bug #19566

closed

p after (un)ordered list causes inconsistent markup when using the list buttons to get out of the list

Added by Uschi Renziehausen about 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-11-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There are several ways to get out of an (un)ordered list. When you are in the last item of your list,
Way 1: press enter two times (first enter creates a new empty list item, second enter gets you out of the list)
Way 2: use button insertParagraphAfter or the equivalent in the context menu.
Way 3: press enter once and then klick the ul/ol button.

Way 3 causes a problem when you want to enter more than one paragraph after your list. The whole text before the last paragraph will be wrapped by a p.

<p>
<p>sometext</p>
<ol>
<li>item 1</li>
<li>item 1</li>
</ol>
some more text
</p>
<p></p>

The problem seems to be that pressing the list button moves the cursor below the list but does not create a p at the same time (the other two ways do that).

Prosit, Uschi

(issue imported from #M9730)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #22861: htmlArea RTE: Hitting ENTER in absence of block element may produce non-valid html in non-IE browserClosedStanislas Rolland2010-06-10

Actions
Actions #1

Updated by Uschi Renziehausen about 16 years ago

Forgot to put a pre around the markup:

  <p>
  <p>sometext</p>
  <ol>
  <li>item 1</li>
  <li>item 1</li>
  </ol>
  some more text
  </p>
  <p></p>
Actions #2

Updated by Uschi Renziehausen about 16 years ago

ok, learned my lesson, pre does not work as expected, you need to htmlspecialchar the stuff first. Sorry for messy messages:

<p>
<p>sometext</p>
<ol>
<li>item 1</li>
<li>item 1</li>
</ol>
some more text
</p>
<p></p>

Actions #3

Updated by Stanislas Rolland over 14 years ago

Hi Uschi,

This was finally fixed in TYPO3 4.3 and trunk See issue #14691.

Kind regards,
Stan

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF