Skip to main content

Bug Tracker

Side navigation

#12933 closed bug (notabug)

Opened November 21, 2012 05:25AM UTC

Closed November 21, 2012 02:12PM UTC

Jquery cut two form from html

Reported by: arvitaly@list.ru 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

Attachments (0)
Change History (3)

Changed November 21, 2012 07:49AM UTC by anonymous comment:1

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

Changed November 21, 2012 08:11AM UTC by anonymous comment:2

Replying to [comment:1 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

Changed November 21, 2012 02:12PM UTC by ajpiano comment:3

resolution: → notabug
status: newclosed