Skip to content

Releases: lume/asdom

v0.2.1

05 Aug 02:51
Compare
Choose a tag to compare

New features:

  • Add Location and all its properties and methods along with window.location and document.location.
  • Support EventListener object listeners for EventTarget's addEventListener and removeEventListener methods.
  • Add Object.toString. It works for any instances of subclasses that may override it, f.e. Location.toString.

v0.2.0

05 Aug 02:50
Compare
Choose a tag to compare

Breaking change:

  • fix: moved innerText from the Element class to the HTMLElement class where it belongs as per spec.

v0.1.15

01 Aug 00:59
Compare
Choose a tag to compare

New APIs since 0.1.13:

  • Add History with pushState(), replaceState(), and length, and window.history returns an instance of it.
  • EventTarget.addEventListener, EventTarget.removeEventListener. Currently supports only callbacks, not EventListener objects yet. And no third options or useCapture arguments yet.
  • ShadowRoot
  • Element.attachShadow()
  • Element.shadowRoot
  • querySelector() and querySelectorAll() on Document, Element, and DocumentFragment
  • Node members: firstChild, lastChild, nextSibling, previousSibling
  • Allow Text objects to be returned from any Node APIs.
  • HTMLCollection
  • Node.parentElement
  • Element.children
  • Element.tagName
  • Element.firstElementChild
  • Element.lastElementChild
  • Element.nextElementSibling
  • Element.previousElementSibling
  • Document.children
  • Document.firstElementChild
  • Document.lastElementChild
  • DocumentFragment.children
  • DocumentFragment.firstElementChild
  • DocumentFragment.lastElementChild
  • DocumentFragment.querySelector
  • DocumentFragment.querySelectorAll
  • add onclick to Document and Window
  • add onpopstate and document to Window

v0.1.13

09 Jul 03:02
Compare
Choose a tag to compare

New feature:

  • Initial Custom Elements API bindings (customElements.define(...))

v0.1.10

03 Jul 06:10
Compare
Choose a tag to compare

New features:

  • Node.cloneNode() for cloning DOM nodes.

v0.1.9

03 Jul 00:09
Compare
Choose a tag to compare

New features:

  • Added HTMLHeadingElement to mirror heading elements.
  • Added the readonly Node.firstChild property which gives back the first child that a node has.
  • Added the readonly HTMLTemplateElement.content property which returns a a template's DocumentFragment.
  • Updated the example to show usage of the above.