Ya I finally figured that part out.  Not liking it but I found a
smooth way of doing what I want.

Thanks for all the replies...

On Jul 11, 6:17 am, Stephan Beal <[EMAIL PROTECTED]> wrote:
> On Jul 10, 1:38 pm, Terry B <[EMAIL PROTECTED]> wrote:
>
> > wtf?  I have specific html i want added to a div so I use append to
> > add it.  fine it works but it is formatting the code and making it
> > unusable.  how do i prevent append from doing this?
>
> Aside from what others have already said here, i think you're
> misunderstanding how append() works:
>
> it internally creates a DOM tree from the HTML you pass it, then it
> uses that tree for future operations. It does that by using
> element.innerHTML, and then reads that tree (which the BROWSER
> creates), and then works with that tree. If it didn't do that, it
> would have to manually parse your HTML code, which is extremely
> difficult to do properly (since it cannot know what you pass it).
> Adding a "proper" HTML parser to jQuery would  inflate its size by
> several times, and it would have to attempt to be "bug-compatible"
> with common browsers (e.g., whether or not to require certain closing
> tags and whether or not to require quotes around attribute values).
>
> In the jq code you can browse the function called 'clean' to see how
> it creates your inner tree.

Reply via email to