Bug Tracker

Opened 11 years ago

Closed 11 years ago

#5604 closed bug (invalid)

jQuery Manipulation functions generate incorrect html

Reported by: raphaelr Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.4a1
Keywords: Cc:
Blocked by: Blocking:

Description

Something like this: $("body").prepend("<p><strong></strong><div></div></p>");

Generates something like this: <p style="display: block;"><strong></strong></p><div></div>

Attachments (1)

temp.html (231 bytes) - added by raphaelr 11 years ago.
Example HTML Code

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by raphaelr

Attachment: temp.html added

Example HTML Code

comment:1 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

http://www.w3.org/TR/html4/struct/text.html#h-9.3.1

"The P element represents a paragraph. It cannot contain block-level elements (including P itself)."

Note: See TracTickets for help on using tickets.