Side navigation
#5604 closed bug (invalid)
Opened December 05, 2009 04:30PM UTC
Closed December 05, 2009 11:52PM UTC
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)
Change History (1)
Changed December 05, 2009 11:52PM UTC by comment:1
| resolution: | → invalid |
|---|---|
| status: | new → closed |
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)."