Bug Tracker

Changes between Initial Version and Version 1 of Ticket #7676, comment 1


Ignore:
Timestamp:
Dec 1, 2010, 8:33:38 AM (9 years ago)
Author:
ajpiano
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7676, comment 1

    initial v1  
    22
    33It's the reason that you can't do this:
    4 
     4{{{
    55$("<div>").appendTo("#foo")
    66$("Hello there").appendTo("#foo");
    77$("</div>").appendTo("#foo");
     8}}}
    89
    910but rather you do $("<div>Hello There</div>") which jQuery can parse into a valid document fragment.  JavaScript does not think in terms of markup strings, but rather Elements.