Module: html2wt/DOMHandlers

Definitions of what's loosely defined as the domHandler interface.

FIXME: Solidify the interface in code.

  var domHandler = {
    handle: Promise.async(function *(node, state, wrapperUnmodified) { ... }),
    sepnls: {
      before: (node, otherNode, state) => { min: 1, max: 2 },
      after: (node, otherNode, state) => { ... },
      firstChild: (node, otherNode, state) => { ... },
      lastChild: (node, otherNode, state) => { ... },
    },
  };

Namespaces

htmlElementHandler
Used as a fallback in tagHandlers.
tagHandlers
A map of domHandlers keyed on nodeNames.

Methods

(inner) _getEncapsulatedContentHandler()

Function returning domHandlers for nodes with encapsulated content.

Function returning domHandlers for nodes with encapsulated content.

Source: