summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/domelementtype/index.js
blob: ab15b0f6e63550edb48b525864ed99c274557183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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";
	}
};