Bug Tracker

Opened 10 years ago

Closed 10 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>

Change History (1)

comment:1 Changed 10 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.