orionsoft-react-scripts
Version:
Orionsoft Configuration and scripts for Create React App.
16 lines (14 loc) • 411 B
JavaScript
//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";
}
};