Bug Tracker

Modify

Ticket #5734 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.