I would still expect that the string you get back from the dom would be valid html.
On 12 Feb, 22:29, Klaus Hartl <klaus.ha...@googlemail.com> wrote: > On 12 Feb., 10:42, weepy <jonah...@gmail.com> wrote: > > > Thanks Klaus I suspected as much. > > > It is quite odd that you can pull some html out, push the same back in > > and it isn't the same! I guess this is a bug in Firefox ? > > It's not that odd at all. As soon as you understand that a browser > will not just copy some text somewhere and try to display it. Any HTML > *source* needs to be parsed and constructed in the DOM tree. > Afterwards the internal representation may have changed. Think of all > the incorrect HTML out there. Browser HTML parsers (also known as tag > soup parsers) go a long way to correct all kind of possible errors in > such bad HTML and thus obviously the internal representation (DOM > tree) will be different than what an author may have written. > > --Klaus --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---