import * as dom from "@siteimprove/alfa-dom" ; import { Node } from "../node" ; public export class Inert extends Node { public static of ( owner ) { return new Inert ( owner ) ; } private constructor ( owner ) { super ( owner , [ ] ) ; } public clone ( ) { return new Inert ( this . _node ) ; } public isIgnored ( ) { return true ; } public toJSON ( ) { return { type : "inert" , node : this . _node . path ( ) , children : this . _children . map ( ( child ) => child . toJSON ( ) ) , } ; } public toString ( ) { return "ignored" ; } } public export namespace Inert { export interface JSON extends Node . JSON { type : "inert" ; } }