The HTML code you pass in to the append/prepend/etc functions gets
converted to actual DOM nodes first, then it gets added to the DOM
tree. This effectively means you can only append/prepend/etc "whole"
tags. This isn't a bug.

If you want to "wrap" a bunch of tags in another tag use the "wrapAll" function:

  http://docs.jquery.com/Manipulation/wrapAll

Karl Rudd

On Wed, Jul 16, 2008 at 10:32 AM, Stefan Petrea <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've noticed recently while trying to use .append that
> for example when I append a </p> tag in reality jQuery
> appends "<p></p>".
> I consider this a bug.
> Is it expected behaviour ?
> What should I do ?
>
> Thank you
>
>
> --
>
> Stefan Petrea
> homepage     : http://perlhobby.googlecode.com/
> mobile phone : +40732070179
>
>

Reply via email to