Check if a HAST node is a script-supporting element.
npm:
npm install hast-util-script-supportingvar scriptSupporting = require('hast-util-script-supporting');
scriptSupporting({
type: 'element',
tagName: 'a',
properties: {href: '#alpha', title: 'Bravo'},
children: [{type: 'text', value: 'Charlie'}]
}); //=> false
scriptSupporting({
type: 'element',
tagName: 'template',
children: [{type: 'text', value: 'Delta'}]
}); //=> trueCheck if the given value is a script-supporting element.