Bug Tracker

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:


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 (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.