Sha256: 0f37e95083d435f9e9ff3a09c526bbcb164fb3dfc4549ee096e2423267f370cd

Contents?: true

Size: 389 Bytes

Versions: 19

Compression:

Stored size: 389 Bytes

Contents

//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[ ... ]]>

	isTag: function(elem){
		return elem.type === "tag" || elem.type === "script" || elem.type === "style";
	}
};

Version data entries

19 entries across 16 versions & 3 rubygems

Version Path
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/dom-serializer/node_modules/domelementtype/index.js
locomotivecms-3.4.0 app/javascript/node_modules/dom-serializer/node_modules/domelementtype/index.js
lanes-0.8.0 node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.10 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.9 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.8 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.7 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.6 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.5 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.4 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.3 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.2 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.1 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.0 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.3.0 lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/source/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/node_modules/cheerio/node_modules/dom-serializer/node_modules/domelementtype/index.js