hast utility to check if an element is script-supporting.
npm:
npm install hast-util-script-supporting
var 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'}]
}) // => true
Check if the given value is a script-supporting element.
See contributing.md
in syntax-tree/.github
for ways to get
started.
See support.md
for ways to get help.
This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.