Opened 13 years ago
Closed 13 years ago
#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: | ||
Blocked by: | Blocking: |
Description
var newElem = $('<INPUT id=attr type=text> </INPUT>'); oldElem.replaceWith(newElem);
the resulting newElem looks like: <INPUT id=attr type=text> </INPUT> </INPUT>
Note: See
TracTickets for help on using
tickets.
INPUT
elements don't have closing tags, they should be self closing.