Bug Tracker

Opened 10 years ago

Closed 10 years ago

#12933 closed bug (notabug)

Jquery cut two form from html

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:

Description

When i use

$("<form><div><form>test</form></div></form>");

or

$("body").append("<form><div><form>test</form></div></form>");

jQuery create "<form><div>test</div></form>"

It's right for Google Chrome

Change History (3)

comment:1 Changed 10 years ago by anonymous

The input is not valid HTML so it's not defined what comes out. Form is not allowed in form.

comment:2 in reply to:  1 Changed 10 years ago by anonymous

Replying to anonymous:

The input is not valid HTML so it's not defined what comes out. Form is not allowed in form.

Oh, yes, sorry.

Link to W3 http://www.w3.org/TR/xhtml1/#prohibitions

comment:3 Changed 10 years ago by ajpiano

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.