Modify ↓
Ticket #10072 (closed bug: wontfix)
creating new dom element(FORM) in ie6-8
| Reported by: | alukin@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | core | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When I create form like this:
var f4 = $('<form>');
it works fine, also like this:
var f3 = $('<form id="feedback_form" method="post" />');
or this:
var f1 = $('<form id="feedback_form" method="post">test1</form>');
but this case return null in IE6-8 (in IE9 and modern browsers all fine)
var f2 = $('<form id="feedback_form" method="post">');
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Older browsers will treat this, as invalid HTML
var f2 = $('<form id="feedback_form" method="post">');This is only allowed by modern browsers because they are parsing HTML with modern rules.