Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/fourtyone11/origin-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/node_modules/domelementtype/index.js')
-rw-r--r--assets/node_modules/domelementtype/index.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/node_modules/domelementtype/index.js b/assets/node_modules/domelementtype/index.js
new file mode 100644
index 0000000..ab15b0f
--- /dev/null
+++ b/assets/node_modules/domelementtype/index.js
@@ -0,0 +1,15 @@
+//Types of elements found in the DOM
+module.exports = {
+ Text: "text", //Text
+ Directive: "directive", //<? ... ?>
+ Comment: "comment", //<!-- ... -->
+ Script: "script", //<script> tags
+ Style: "style", //<style> tags
+ Tag: "tag", //Any tag
+ CDATA: "cdata", //<![CDATA[ ... ]]>
+ Doctype: "doctype",
+
+ isTag: function(elem){
+ return elem.type === "tag" || elem.type === "script" || elem.type === "style";
+ }
+};