2 Object.defineProperty(exports, "__esModule", { value: true });
4 * Tests whether an element is a tag or not.
6 * @param elem Element to test
9 return (elem.type === "tag" /* Tag */ ||
10 elem.type === "script" /* Script */ ||
11 elem.type === "style" /* Style */);
13 exports.isTag = isTag;
14 // Exports for backwards compatibility
15 exports.Text = "text" /* Text */; //Text
16 exports.Directive = "directive" /* Directive */; //<? ... ?>
17 exports.Comment = "comment" /* Comment */; //<!-- ... -->
18 exports.Script = "script" /* Script */; //<script> tags
19 exports.Style = "style" /* Style */; //<style> tags
20 exports.Tag = "tag" /* Tag */; //Any tag
21 exports.CDATA = "cdata" /* CDATA */; //<![CDATA[ ... ]]>
22 exports.Doctype = "doctype" /* Doctype */;