Provides DOM operations in an environment-agnostic way.

Constructors

DomAdapter()

Properties

attrToPropMap → Map<String, String>

Maps attribute names to their corresponding property names for cases where attribute name doesn't match property name.

read / write
hashCode → int

Get a hash code for this object.

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

addClass(T element, String className) → void

adoptNode(N node) → dynamic

appendChild(T el, N node) → void

attributeMap(T element) → Map<String, String>

cancelAnimationFrame(id) → void

childNodes(T el) → List

childNodesAsList(T el) → List

classList(T element) → List<String>

clearNodes(T el) → void

clone(N node) → N

content(N node) → dynamic

createComment(String text) → dynamic

createElement(String tagName, [ doc ]) → T

createElementNS(String ns, String tagName, [ doc ]) → T

createEvent(String eventType) → dynamic

createHtmlDocument() → dynamic

createMouseEvent(String eventType) → dynamic

createScriptTag(String attrName, String attrValue, [ doc ]) → dynamic

createShadowRoot(T el) → dynamic

createStyleElement(String css, [ doc ]) → dynamic

createTemplate(String html) → dynamic

createTextNode(String text, [ doc ]) → N

defaultDoc() → dynamic

dispatchEvent(T el, evt) → void

elementMatches(n, String selector) → bool

firstChild(T el) → dynamic

getAnimationPrefix() → String

getAttribute(T element, String attribute) → String

getAttributeNS(T element, String ns, String attribute) → String

getBaseHref() → String

getBoundingClientRect(T el) → void

getChecked(T el) → bool

getComputedStyle(T element) → dynamic

getData(T element, String name) → String

getDistributedNodes(T el) → List

getElementsByClassName(T element, String name) → List<N>

getElementsByTagName(T element, String name) → List<N>

getEventKey(event) → String

getHistory() → dynamic

getHost(T el) → dynamic

getHref(T element) → String

getInnerHTML(T el) → String

getLocation() → dynamic

getOuterHTML(T el) → String

getProperty(T element, String name) → dynamic

getShadowRoot(T el) → dynamic

getStyle(T element, String styleName) → String

getTemplateContent(T el) → dynamic

getText(T el) → String

getTitle() → String

getTransitionEnd() → String

getUserAgent() → String

getValue(T el) → String

getXHR() → Type

hasAttribute(T element, String attribute) → bool

hasAttributeNS(T element, String ns, String attribute) → bool

hasClass(T element, String className) → bool

hasProperty(T element, String name) → bool

hasShadowRoot(N node) → bool

hasStyle(T element, String styleName, [ String styleValue ]) → bool

importIntoDoc(N node) → dynamic

insertAfter(T el, N node) → void

insertAllBefore(T el, List<N> nodes) → void

insertBefore(T el, N node) → void

isCommentNode(N node) → bool

isElementNode(N node) → bool

isPrevented(evt) → bool

isShadowRoot(N node) → bool

isTemplateElement(T el) → bool

isTextNode(N node) → bool

log(error) → void

logError(error) → void

logGroup(error) → void

logGroupEnd() → void

nextSibling(T el) → dynamic

nodeName(N node) → String

nodeValue(N node) → String

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
on(ET eventTarget, String evt, dynamic listener(arg)) → void

onAndCancel(T el, String evt, dynamic listener(arg)) → Function

parentElement(T el) → dynamic

parse(String templateHtml) → void

performanceNow() → num

preventDefault(evt) → void

query(String selector) → dynamic

querySelector(el, String selector) → dynamic

querySelectorAll(el, String selector) → List

remove(T el) → dynamic

removeAttribute(T element, String attribute) → void

removeAttributeNS(T element, String ns, String attribute) → void

removeChild(T el, N node) → void

removeClass(T element, String className) → void

removeStyle(T element, String styleName) → void

replaceChild(T el, N newNode, N oldNode) → void

requestAnimationFrame(callback) → num

resetBaseElement() → void

resolveAndSetHref(T element, String baseUrl, String href) → void

setAttribute(T element, String name, String value) → void

setAttributeNS(T element, String ns, String name, String value) → void

setChecked(T el, bool value) → void

setData(T element, String name, String value) → void

setGlobalVar(String name, value) → void

setInnerHTML(T el, String value) → void

setProperty(T element, String name, value) → void

setStyle(T element, String styleName, String styleValue) → void

setText(T el, String value) → void

setTitle(String newTitle) → void

setValue(T el, String value) → void

supportsAnimation() → bool

supportsDOMEvents() → bool

supportsNativeShadowDOM() → bool

tagName(T element) → String

templateAwareRoot(T el) → dynamic

toString() → String

Returns a string representation of this object.

inherited
type(inputElement) → String