Type Parameters

Hierarchy

  • MLParentNode<T, O>
    • Document

Implements

Constructors

Properties

Accessors

URL activeElement adoptedStyleSheets alinkColor all anchors applets baseURI bgColor body characterSet charset childElementCount childNodes children compatMode contentType cookie currentScript defaultView designMode dir doctype documentElement documentURI domain embeds endCol endLine endOffset fgColor filename firstChild firstElementChild fonts forms fullscreen fullscreenElement fullscreenEnabled head hidden images implementation inputEncoding isConnected lastChild lastElementChild lastModified linkColor links location nextNode nextSibling nodeName nodeType nodeValue onabort onanimationcancel onanimationend onanimationiteration onanimationstart onauxclick onbeforeinput onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncopy oncuechange oncut ondblclick ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus onformdata onfullscreenchange onfullscreenerror ongotpointercapture oninput oninvalid onkeydown onkeypress onkeyup onload onloadeddata onloadedmetadata onloadstart onlostpointercapture onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointerlockchange onpointerlockerror onpointermove onpointerout onpointerover onpointerup onprogress onratechange onreadystatechange onreset onresize onscroll onsecuritypolicyviolation onseeked onseeking onselect onselectionchange onselectstart onslotchange onstalled onsubmit onsuspend ontimeupdate ontoggle ontransitioncancel ontransitionend ontransitionrun ontransitionstart onvisibilitychange onvolumechange onwaiting onwebkitanimationend onwebkitanimationiteration onwebkitanimationstart onwebkittransitionend onwheel originRaw ownerDocument ownerMLDocument parentElement parentNode pictureInPictureElement pictureInPictureEnabled plugins pointerLockElement prevNode prevToken previousSibling raw readyState referrer rootElement rule scripts scrollingElement startCol startLine startOffset styleSheets syntacticalParentNode textContent timeline title visibilityState vlinkColor

Methods

Constructors

  • Type Parameters

    Parameters

    • ast: MLASTDocument

      node list of markuplint AST

    • ruleset: Ruleset

      ruleset object

    • schemas: MLSchema
    • Optional options: {
          booleanish?: boolean;
          endTag?: "xml" | "omittable" | "never";
          filename?: string;
          pretenders?: readonly Pretender[];
      }
      • Optional Readonly booleanish?: boolean
      • Optional Readonly endTag?: "xml" | "omittable" | "never"
      • Optional Readonly filename?: string
      • Optional Readonly pretenders?: readonly Pretender[]

    Returns Document<T, O>

Properties

#childNodes: undefined | NodeListOf<ChildNode<T, O>>

Cached childNodes property

#children: null | HTMLCollectionOf<Element<T, O>> = null

Cached children

#endCol: number
#endLine: number
#endOffset: number
#filename?: string
#fixed: string
#ownerDocument: Document<T, O>

Owner Document

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#ref-for-dom-node-ownerdocument

#prevToken: undefined | null | MLNode<T, O, MLASTAbstractNode>

Cached prevToken property

#raw: string
#selectedElements: Map<string, NodeListOf<Element<T, O>>> = ...

Cached elements that created from querySelectorAll

#startCol: number
#startLine: number
#startOffset: number
#tokenList: null | readonly MLToken<MLToken>[] = null
ATTRIBUTE_NODE: 2 = 2

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

CDATA_SECTION_NODE: 4 = 4

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

COMMENT_NODE: 8 = 8

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

DOCUMENT_FRAGMENT_NODE: 11 = 11

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

DOCUMENT_NODE: 9 = 9

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

DOCUMENT_POSITION_CONTAINED_BY: 16 = 0b10_000
DOCUMENT_POSITION_CONTAINS: 8 = 0b1_000
DOCUMENT_POSITION_DISCONNECTED: 1 = 0b1
DOCUMENT_POSITION_FOLLOWING: 4 = 0b100
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32 = 0b100_000
DOCUMENT_POSITION_PRECEDING: 2 = 0b10
DOCUMENT_TYPE_NODE: 10 = 10

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

ELEMENT_NODE: 1 = 1

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

ENTITY_NODE: 6 = 6

Deprecated

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

ENTITY_REFERENCE_NODE: 5 = 5

Deprecated

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

MARKUPLINT_PREPROCESSOR_BLOCK: 101 = 101

Implements

@markuplint/ml-core API: MLNode

NOTATION_NODE: 12 = 12

Deprecated

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

PROCESSING_INSTRUCTION_NODE: 7 = 7

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

TEXT_NODE: 3 = 3

Implements

DOM API: Node

See

https://dom.spec.whatwg.org/#interface-node

booleanish: boolean

Detect value as a true if its attribute is booleanish value and omitted.

Ex:

<Component aria-hidden />

In the above, the aria-hidden is true.

Default

false

currentRule: null | Readonly<MLRule<T, O>> = null
endTag: EndTagType

This is defined by the parser.

Default

"omittable"

isFragment: boolean
nodeList: readonly MLNode<T, O, MLASTAbstractNode>[]

An array of markuplint DOM nodes

ontouchcancel?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
ontouchend?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
ontouchmove?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
ontouchstart?: null | ((this: GlobalEventHandlers, ev: TouchEvent) => any)
rules: Record<string, AnyRule> = {}
specs: MLMLSpec
uuid: string

Accessors

  • get currentScript(): null | HTMLOrSVGScriptElement
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Returns null | HTMLOrSVGScriptElement

  • get defaultView(): any
  • Window object for calling the getComputedStyle and the getPropertyValue that are needed by Accessible Name and Description Computation. But it always returns the empty object. (It may improve to possible to compute the name from the style attribute in the future.)

    Implements

    DOM API: Document

    Returns any

  • get oncancel(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get oncanplay(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get oncanplaythrough(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onchange(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onclose(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get oncuechange(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get ondurationchange(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onemptied(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onended(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get oninput(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get oninvalid(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onload(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onloadeddata(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onloadedmetadata(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onloadstart(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onpause(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onplay(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onplaying(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onratechange(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onreset(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onscroll(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onseeked(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onseeking(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onselect(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onselectionchange(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onselectstart(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onslotchange(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onstalled(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onsuspend(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get ontimeupdate(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get ontoggle(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onvolumechange(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onwaiting(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onwebkitanimationend(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onwebkitanimationiteration(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onwebkitanimationstart(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get onwebkittransitionend(): null | ((this: GlobalEventHandlers, ev: Event) => any)
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Returns null | ((this: GlobalEventHandlers, ev: Event) => any)

  • get textContent(): null | string
  • Return the text content.

    • If the node is a Comment, or Text, textContent returns, or sets, the text inside the node, i.e., the Node.nodeValue.
    • For other node types, textContent returns the concatenation of the textContent of every child node, excluding comments and processing instructions. (This is an empty string if the node has no children.)

    Implements

    DOM API: Node

    See

    https://dom.spec.whatwg.org/#dom-node-textcontent

    Returns null | string

  • get visibilityState(): DocumentVisibilityState
  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Returns DocumentVisibilityState

Methods

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • namespace: null | string
    • qualifiedName: string

    Returns Attr

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • tagName: any
    • Optional options: any

    Returns any

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • namespace: any
    • qualifiedName: any
    • Optional options: any

    Returns any

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • eventInterface: any

    Returns any

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • commandId: string
    • Optional showUI: boolean
    • Optional value: string

    Returns boolean

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • classNames: string

    Returns HTMLCollectionOf<Element<T, O>>

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • qualifiedName: string

    Returns HTMLCollectionOf<Element<T, O>>

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • namespace: any
    • localName: any

    Returns any

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Type Parameters

    Parameters

    • node: T
    • Optional deep: boolean

    Returns T

  • Implements

    @markuplint/ml-core API: MLNode

    Type Parameters

    • NType extends NodeType

    Parameters

    • nodeType: NType

    Returns this is NodeTypeOf<NType, T, O>

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • Optional url: any
    • Optional name: any
    • Optional features: any

    Returns any

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • commandId: string

    Returns boolean

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • commandId: string

    Returns boolean

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • commandId: string

    Returns boolean

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • commandId: string

    Returns boolean

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Deprecated

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • commandId: string

    Returns string

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • Rest ...text: readonly string[]

    Returns void

  • IT THROWS AN ERROR WHEN CALLING THIS.

    Unsupported

    Implements

    DOM API: Document

    Parameters

    • Rest ...text: readonly string[]

    Returns void

Generated using TypeDoc