Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.65 KB

File metadata and controls

34 lines (25 loc) · 1.65 KB

Module: lib.dom

README -> API Index -> Modules Index -> lib.dom

Source: src/lib/dom/index.js

DOM element resolution, attribute/property access, and helper entrypoints.

Exported Functions

  • get - Get a value from a DOM element with a few legacy carve-outs.
  • set - Set a value on a DOM element using legacy-safe attribute/property rules.
  • is - Check whether a value is a DOM Element.
  • isDom - Check whether a value is a DOM Element.
  • getElement - Resolve an element reference.
  • byId - Alias for document.getElementById.
  • removeElement - Remove an element from the DOM.
  • qs - Parse the current query string into a plain object.
  • insertAfter - Insert a DOM node immediately after another node.
  • filterAttributes - Collect an element's attributes into a plain object, optionally filtering by regex.
  • attempt - Best-effort coercion from mixed input into a DOM node.

Nested Namespaces

Related