2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = void 0;
5 * Tests whether an element is a tag or not.
7 * @param elem Element to test
10 return (elem.type === "tag" /* Tag */ ||
11 elem.type === "script" /* Script */ ||
12 elem.type === "style" /* Style */);
14 exports.isTag = isTag;
15 // Exports for backwards compatibility
16 /** Type for the root element of a document */
17 exports.Root = "root" /* Root */;
19 exports.Text = "text" /* Text */;
20 /** Type for <? ... ?> */
21 exports.Directive = "directive" /* Directive */;
22 /** Type for <!-- ... --> */
23 exports.Comment = "comment" /* Comment */;
24 /** Type for <script> tags */
25 exports.Script = "script" /* Script */;
26 /** Type for <style> tags */
27 exports.Style = "style" /* Style */;
28 /** Type for Any tag */
29 exports.Tag = "tag" /* Tag */;
30 /** Type for <![CDATA[ ... ]]> */
31 exports.CDATA = "cdata" /* CDATA */;
32 /** Type for <!doctype ...> */
33 exports.Doctype = "doctype" /* Doctype */;