remixml-dom

6.1.1 • Public • Published

Remixml to DOM rendering

NPM version Downloads Rate on Openbase

Remixml component that renders directly to the DOM in browsers.

Uses the regular Javascript DOM-API and therefore is not limited by the pseudo-smart parsing rules that the browser HTML parser imposes, i.e. it allows the creation of arbitrary DOM structures.

Requirements

It runs inside any webbrowser environment.

If the browser enforces trusted-types, add the remixml policy; e.g. through an HTTP header like: Content-Security-Policy: trusted-types remixml;

Reference documentation

  • Remixmldom.abstract2dom(abstract, node?)
    Converts a DOM abstract into DOM nodes. If the optional node argument is specified, it replaces the children of node with the content described in DOM abstract. Returns node if specified, or the new nodes.

References

Card-carrying member of the zerodeps movement.

Package Sidebar

Install

npm i remixml-dom

Weekly Downloads

1

Version

6.1.1

License

(ISC OR GPL-3.0)

Unpacked Size

20.1 kB

Total Files

13

Last publish

Collaborators

  • buglessrb