Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / dom-serializer / node_modules / domelementtype / lib / index.js
1 "use strict";
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;
4 /**
5  * Tests whether an element is a tag or not.
6  *
7  * @param elem Element to test
8  */
9 function isTag(elem) {
10     return (elem.type === "tag" /* Tag */ ||
11         elem.type === "script" /* Script */ ||
12         elem.type === "style" /* Style */);
13 }
14 exports.isTag = isTag;
15 // Exports for backwards compatibility
16 /** Type for the root element of a document */
17 exports.Root = "root" /* Root */;
18 /** Type for Text */
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 */;