Yeah...

That's what I ended up with. But even then I had to retailor my HTML
slightly. That worked though. 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Klaus Hartl
Sent: Wednesday, September 05, 2007 8:38 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Bug in before, and after??


Andy Matthews wrote:
> Klaus...
> 
> The docs don't seem to indicate that it will insert something AND 
> close a tag at the same time. It just says "Inserts some HTML before 
> all paragraphs". That's what I want, but I want full control over it. 
> There's plenty of times where a developer might be working with xHTML, 
> which in small pieces is invalid or incomplete, but when viewed in 
> total is perfectly fine.
> 
> Anyway, if you're saying that's expected behavior then I'll refactor 
> code so that I get expected results on my end or I just won't use that
method again.
> 
> Thanks for responding.


Instead of using before(openeningTag) with after(closingTag) you should
surely use the wrap method...



--Klaus


Reply via email to