Ticket #338 (closed defect: invalid)
p tag as parent of form tag causes autogeneration of Kauri form HTML (IE)
| Reported by: | sdm | Owned by: | mpo |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.4 |
| Component: | modules/kauri-forms | Version: | trunk |
| Keywords: | paragraph tag | Cc: | kauri-discuss@… |
Description (last modified by sdm) (diff)
This problem only occurs in Internet Explorer (tested with IE8):
When you have a form config in combination with a form template in HTML, and the parent tag of the form tag is paragraph, then Kauri will not bind the form config to the existing form HTML template, but it will generate new HTML for the form.
This can be reproduced in kauri-forms-sample, basic-controls1.html:
Just place a <p> tag around the existing HTML form like this:
<p> <form> ... </form> </p>
Change History
comment:1 Changed 3 years ago by sdm
- Description modified (diff)
- Summary changed from p tag as parent of form tag causes autogeneration of Kauri form HTML to p tag as parent of form tag causes autogeneration of Kauri form HTML (IE)
comment:2 Changed 3 years ago by freya
This happens because putting a <p> tag around a <form> tag is not valid, and the way different browsers handle this.
Apparently, in FF the <p> tag is moved above the <form>, and that form is detected bij Kauri forms. In IE however, the <form> tag itself is removed, and so is not detected by the Forms....
comment:4 Changed 3 years ago by sdm
If you don't know that a <p> tag is not allowed around a <form> tag (and I didn't know that), then it might take a while to find out what is causing the problem.
Maybe it would be a good idea to add a warning in the Kauri form documentation that the use of invalid HTML may cause problems with Kauri.