summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/domelementtype/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/domelementtype/index.js')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/domelementtype/index.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/domelementtype/index.js b/bin/wiki/ImportarDesdeURL/node_modules/domelementtype/index.js
new file mode 100644
index 00000000..ab15b0f6
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/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";
+ }
+};