Opened 17 years ago

Closed 16 years ago

#741 closed Bug (fixed)

Nested Paragraphs Inside Form Destroy Form

Reported by: thc33@… Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF Cc:


If you have paragraph tags around a form and then paragraph tags around a form element, the 2nd set of tags inside the form will be pulled outside of the form along with the form elements contained inside them. This happens when switching to source mode and back a couple times.

Here's some sample code that was easily created in wysiwyg mode. Paste it into the editor in source mode and then toggle modes a couple times to see the horror of horrors. :)

<form action="test" method="post" name="test">
<p>&nbsp;<input name="ad" /></p>

The editor MUST preserve the form elements leaving the nested p's intact or find a way to remove the p's leaving the element intact (replacing with </ br></ br> or something). This must be backward compatible to preserve forms created in earlier versions where this wasn't enforced.

Moved from SF:

Change History (2)

comment:1 Changed 17 years ago by Martin Kou

Reporter: changed from Martin Kou to thc33@…

comment:2 Changed 16 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: newclosed

With the current SVN version, the form will be left intact. There will be another effect though. The final result will be:

<form name="test" method="post" action="test">
    <p>&nbsp;<input name="ad" /></p>

Not that the first and last <p> elements have been "fixed". This is done automatically by the browser, as <p> elements cannot contain <form> elements. This is the expected behavior.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy