Learning jQuery source code series: how jQuery gets the tag name when creating a DOM element
In jQuery, if a string is passed as the parameter to $(), jQuery examines the string to see if it looks like HTML (i.e., it starts with <tag … >. If the string appears to…