Skip to main content
Module

x/commandis/mod.ts>dom.XMLDocument

Official framework for Corddis lib ( for Deno only )
Latest
interface dom.XMLDocument
implements Document
import { type dom } from "https://deno.land/x/commandis@v0.6.5/mod.ts";
const { XMLDocument } = dom;

An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.

Methods

addEventListener<K extends keyof DocumentEventMap>(
type: K,
listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof DocumentEventMap>(
type: K,
listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void