Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>XMLDocument

Deno Standard Extensions
Go to Latest
interface XMLDocument
implements Document
import { type XMLDocument } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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