Properties
Private _parser
_parser: DOMParser
Methods
Private _insertAfter
- _insertAfter(newNode: Node, referenceNode: Node): void
-
Parameters
-
newNode: Node
-
referenceNode: Node
Returns void
addContainer
- addContainer(container: HTMLElement, wrapper: HTMLElement): void
-
Parameters
-
container: HTMLElement
-
wrapper: HTMLElement
Returns void
getContainer
- getContainer(scope?: Scope): HTMLElement | null
-
Parameters
-
Default value scope: Scope = document
Returns HTMLElement
|
null
getHref
- getHref(el: Link): string | null
-
Parameters
Returns string
|
null
getHtml
- getHtml(doc?: HTMLDocument): string
-
Parameters
-
Default value doc: HTMLDocument = document
Returns string
getNamespace
- getNamespace(scope?: Scope): string | null
-
Parameters
-
Default value scope: Scope = document
Returns string
|
null
getWrapper
-
Parameters
-
Default value scope: Scope = document
removeContainer
- removeContainer(container: HTMLElement): void
resolveUrl
- resolveUrl(...urls: string[]): string
-
Parameters
Returns string
toDocument
- toDocument(htmlString: string): HTMLDocument
-
Parameters
Returns HTMLDocument
toElement
- toElement(htmlString: string): HTMLDivElement
-
Parameters
Returns HTMLDivElement
toString
- toString(el: HTMLElement): string
-
Parameters
Returns string
Object literals
Private _sibling
_sibling: object
before
before: null = null
parent
parent: null = null
Insert node after another node.