Constructors
constructor
- new MiniDOM(html_text: string): MiniDOM
Accessors
document
- get document(): Document
Returns Document
isFragment
- get isFragment(): boolean
Returns boolean
Methods
addChild
- addChild(parent: Element, element: string, content?: string): Element
Parameters
- parent: Element
- element: string
- content: string = undefined
Returns Element
the new element
getElementById
- getElementById(id: string): Element
Returns Element
getElementsByTagName
- getElementsByTagName(tag: string): HTMLCollection
Returns HTMLCollection
innerHTML
- innerHTML(): string
Returns string
A thin layer on top of the regular DOM Document. The class includes some handy shorthands to make the code cleaner…