1908ef7464c019471bb8fb938a1672d4a3fd3a66
[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 /**
4  * Tests whether an element is a tag or not.
5  *
6  * @param elem Element to test
7  */
8 function isTag(elem) {
9     return (elem.type === "tag" /* Tag */ ||
10         elem.type === "script" /* Script */ ||
11         elem.type === "style" /* Style */);
12 }
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 */;