1 //Types of elements found in the DOM
4 Directive: "directive", //<? ... ?>
5 Comment: "comment", //<!-- ... -->
6 Script: "script", //<script> tags
7 Style: "style", //<style> tags
9 CDATA: "cdata", //<![CDATA[ ... ]]>
12 isTag: function(elem){
13 return elem.type === "tag" || elem.type === "script" || elem.type === "style";