import { cloneNode, Document } from 'domhandler'; /** * Check if the DOM element is a tag. * * `isTag(type)` includes `