To be more accurate, $([]).add( nodeList )
can not contains comment nodes only on IE. This makes it even more ambiguous, with unexpected results. Also it seams that the only expected NodeList is from an getElementsByTagName.call. I know that it is not explicitly supported by the API, but even then it seams that there are some inconsistent logic. On Oct 30, 6:28 am, Robert Katić <robert.ka...@gmail.com> wrote: > jQuery.merge() is the only function that discards comment nodes (?). > > This means that > > $( nodeList ) > > can contains comment nodes, but > > $([]).add( nodeList ) > > can not. > > Why such different behaviors? > Is the jQuery.makeArray() more appropriate to filter comment nodes? > Am I missing something here? -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@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.