Modify ↓
Ticket #5734 (closed bug: invalid)
ReplaceWith duplicates closing tag </input> in xhtml
| Reported by: | bertpayne | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | unfiled | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
var newElem = $('<INPUT id=attr type=text> </INPUT>'); oldElem.replaceWith(newElem);
the resulting newElem looks like: <INPUT id=attr type=text> </INPUT> </INPUT>
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.

INPUT elements don't have closing tags, they should be self closing.