'use strict'; const { detachNodeFromParent } = require('../lib/xast.js'); const { attrsGroups } = require('./_collections.js'); exports.name = 'removeScriptElement'; exports.description = 'removes scripts (disabled by default)'; /** Union of all event attributes. */ const eventAttrs = [ ...attrsGroups.animationEvent, ...attrsGroups.documentEvent, ...attrsGroups.documentElementEvent, ...attrsGroups.globalEvent, ...attrsGroups.graphicalEvent, ]; /** Namespaces that support executable