In jQuery, is there any difference between this:
$(\'\').appendTo(\'body\');
And this:
$(\'\').appe
No. Neither this The proof is so that if we go to jQuery sources we can see that in case of selector with single tag syntax where only the symbolic part is used for $("$("") will cause problems.
<...> it parses selector with this regular expression:rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/
createElement and closing slash can be optional.