microjungle JsonML to DocumentFragment

Based on https://github.com/deepsweet/microjungle

As of 09/12/2016. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greatest.deepsurf.us/scripts/25520/162318/microjungle%20JsonML%20to%20DocumentFragment.js

Autor
Spooky Donkey
Verzija
2
Napravljeno
08/12/2016
Ažurirano
09/12/2016
Size
1,3 КБ
Licenca
Nije dostupno

var mj = new MicrojungleJsonMLtoDocumentFragment();
var jm = [["div", {class: "fun"}, "hello"]];
mj(jm).firstElementChild.outerHTML === "<div class=\"fun\">hello</div>";//true