Interface NodeFactories

interface NodeFactories {
    cdata(data?: string): CDATASection;
    comment(data?: string): Comment;
    doc(...children: Child[]): Document;
    doctype(name: string, publicId?: string, systemId?: string): DocumentType;
    f(...children: Child[]): DocumentFragment;
    pi(target: string, data?: string): ProcessingInstruction;
}

Methods

  • Parameters

    • name: string
    • OptionalpublicId: string
    • OptionalsystemId: string

    Returns DocumentType