Sha256: 80e7e2bd7d889c1d28ca702a2eea3fb98f1bbc9ffbdc28535f75faf63c3fb1ce

Contents?: true

Size: 796 Bytes

Versions: 41

Compression:

Stored size: 796 Bytes

Contents

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * 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 */);
}
exports.isTag = isTag;
// Exports for backwards compatibility
exports.Text = "text" /* Text */; //Text
exports.Directive = "directive" /* Directive */; //<? ... ?>
exports.Comment = "comment" /* Comment */; //<!-- ... -->
exports.Script = "script" /* Script */; //<script> tags
exports.Style = "style" /* Style */; //<style> tags
exports.Tag = "tag" /* Tag */; //Any tag
exports.CDATA = "cdata" /* CDATA */; //<![CDATA[ ... ]]>
exports.Doctype = "doctype" /* Doctype */;

Version data entries

41 entries across 41 versions & 6 rubygems

Version Path
trusty-cms-4.3.3 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.3.2 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.3.1 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.3 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.2.3 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.2.2 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.2.1 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.2 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.1.9 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.1.8 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.1.7 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.1.6 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
trusty-cms-4.1.5 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
enju_library-0.3.8 spec/dummy/node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
jester-data-8.0.0 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
ezii-os-5.2.1 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
ezii-os-2.0.1 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
ezii-os-1.1.0 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
ezii-os-1.0.0 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js
ezii-os-0.0.0.1.0 node_modules/dom-serializer/node_modules/domelementtype/lib/index.js