import { DomUtils } from 'htmlparser2'; import { Node } from 'domhandler'; import type { Cheerio } from './cheerio'; /** * Check if the DOM element is a tag. * * `isTag(type)` includes `