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.
See contributing.md in syntax-tree/hast for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.