massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / dom-serializer / node_modules / domelementtype / lib / index.js
index bf26d83786972ecfdd5181f250e8e19f7667fcd5..b0ebcb1c1bc7ed344ace145c02f50c094303f809 100644 (file)
@@ -1,33 +1,55 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = void 0;
+exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
+/** Types of elements found in htmlparser2's DOM */
+var ElementType;
+(function (ElementType) {
+    /** Type for the root element of a document */
+    ElementType["Root"] = "root";
+    /** Type for Text */
+    ElementType["Text"] = "text";
+    /** Type for <? ... ?> */
+    ElementType["Directive"] = "directive";
+    /** Type for <!-- ... --> */
+    ElementType["Comment"] = "comment";
+    /** Type for <script> tags */
+    ElementType["Script"] = "script";
+    /** Type for <style> tags */
+    ElementType["Style"] = "style";
+    /** Type for Any tag */
+    ElementType["Tag"] = "tag";
+    /** Type for <![CDATA[ ... ]]> */
+    ElementType["CDATA"] = "cdata";
+    /** Type for <!doctype ...> */
+    ElementType["Doctype"] = "doctype";
+})(ElementType = exports.ElementType || (exports.ElementType = {}));
 /**
  * Tests whether an element is a tag or not.
  *
  * @param elem Element to test
  */
 function isTag(elem) {
-    return (elem.type === "tag" /* Tag */ ||
-        elem.type === "script" /* Script */ ||
-        elem.type === "style" /* Style */);
+    return (elem.type === ElementType.Tag ||
+        elem.type === ElementType.Script ||
+        elem.type === ElementType.Style);
 }
 exports.isTag = isTag;
 // Exports for backwards compatibility
 /** Type for the root element of a document */
-exports.Root = "root" /* Root */;
+exports.Root = ElementType.Root;
 /** Type for Text */
-exports.Text = "text" /* Text */;
+exports.Text = ElementType.Text;
 /** Type for <? ... ?> */
-exports.Directive = "directive" /* Directive */;
+exports.Directive = ElementType.Directive;
 /** Type for <!-- ... --> */
-exports.Comment = "comment" /* Comment */;
+exports.Comment = ElementType.Comment;
 /** Type for <script> tags */
-exports.Script = "script" /* Script */;
+exports.Script = ElementType.Script;
 /** Type for <style> tags */
-exports.Style = "style" /* Style */;
+exports.Style = ElementType.Style;
 /** Type for Any tag */
-exports.Tag = "tag" /* Tag */;
+exports.Tag = ElementType.Tag;
 /** Type for <![CDATA[ ... ]]> */
-exports.CDATA = "cdata" /* CDATA */;
+exports.CDATA = ElementType.CDATA;
 /** Type for <!doctype ...> */
-exports.Doctype = "doctype" /* Doctype */;
+exports.Doctype = ElementType.Doctype;