Skip to main content

Bug Tracker

Side navigation

#5548 closed bug (invalid)

Opened November 25, 2009 08:38AM UTC

Closed June 13, 2010 06:56PM UTC

Form submit fails with Unclosed <P> tag before <Form>.

Reported by: kleptomac Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: unclosed <P> tag, form submit Cc:
Blocked by: Blocking:

Form submit doesn't submit correct values in IE 7 and 8 if there is an unclosed <P> tag before <Form>.

Attachments (0)
Change History (2)

Changed November 29, 2009 06:12AM UTC by kleptomac comment:1

This is the fix for getting it work.

var form = $(document).find('form');

var frm = form.parent().html();

if(frm.toLowerCase().indexOf('form') > -1 && frm.toLowerCase().indexOf('/form') == -1) {

var frmTag = frm.substring(frm.toLowerCase().indexOf('<form'), frm.toLowerCase().indexOf('>')+1);

var rest = frm.substring(frm.toLowerCase().indexOf('>')+1);





Changed June 13, 2010 06:56PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

Please reopen with a complete test case including HTML and script.