Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RxDocumentFragment

Hierarchy

Index

Constructors

constructor

Properties

attributes

attributes: {}

Type declaration

  • [key: string]: string | null

childNodes

childNodes: RxNode[]

classList

classList: RxClassList

nodeName

nodeName: string

nodeType

nodeType: RxNodeType

nodeValue

nodeValue: string | null = null

parentNode

parentNode: RxElement | null

style

style: RxStyle

Accessors

childElementCount

  • get childElementCount(): number

children

firstChild

  • get firstChild(): RxNode | null

firstElementChild

innerHTML

  • get innerHTML(): string
  • set innerHTML(html: string): void

innerText

  • get innerText(): string | null
  • set innerText(nodeValue: string | null): void

lastChild

  • get lastChild(): RxNode | null

lastElementChild

nextSibling

  • get nextSibling(): RxNode | null

outerHTML

  • get outerHTML(): string | null

previousSibling

  • get previousSibling(): RxNode | null

textContent

  • get textContent(): string | null
  • set textContent(nodeValue: string | null): void

wholeText

  • get wholeText(): undefined | null | string

Methods

addListener

  • addListener(eventName: string, handler: (e: any) => {}): void

append

  • append(...nodesOrDOMStrings: (RxNode | string)[]): void

appendChild

  • appendChild<T>(newChild: T): T

cloneNode

  • cloneNode(deep?: boolean): RxNode

getAttribute

  • getAttribute(attribute: string): string | null

hasAttribute

  • hasAttribute(attribute: string): boolean

insertBefore

prepend

  • prepend(...nodesOrDOMStrings: (RxNode | string)[]): void

querySelector

  • querySelector(selector: string): RxNode | null

querySelectorAll

  • querySelectorAll(selector: string): RxNode[] | null

removeAttribute

  • removeAttribute(attribute: string): void

removeChild

removeListener

  • removeListener(eventName: string, handler: (e: any) => {}): void

replaceChild

replaceChildren

  • replaceChildren(...nodesOrDOMStrings: (RxNode | string)[]): void

serialize

  • serialize(): string

serializeAttributes

  • serializeAttributes(): string

setAttribute

  • setAttribute(attribute: string, value: any): void