ProxyElement
ProxyElement =
object
An HTML element, as a ProxyRewriter handler receives it. The proxy calls only these three methods, so an adapter needs nothing more.
Methods
Section titled “Methods”append()
Section titled “append()”append(
content,options?):void
Inserts content just before the element’s end tag: as raw HTML when
html is true, as text otherwise. The proxy escapes HTML content before
it calls this, so pass it through unchanged.
Parameters
Section titled “Parameters”content
Section titled “content”string
options?
Section titled “options?”boolean
Returns
Section titled “Returns”void
getAttribute()
Section titled “getAttribute()”getAttribute(
name):string|null
The attribute’s value, or null when the element does not have it.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | null
remove()
Section titled “remove()”remove():
void
Removes the element and everything inside it.
Returns
Section titled “Returns”void