JsonML extension to jQuery
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
.gitmodules
README.md
jquery.jsonml.js

README.md

JsonML extension to jQuery library

This script extends the jQuery library with ability to create DOM tree from JsonML array format.

Usage

$.jsonml(JSON.parse('["span", { "class" : "code-example-third" }, "Third"]')).appendTo(document.body);

You can also use this method to create DOM tree in a different document:

$.jsonml(JSON.parse('["span", { "style" : "background-color:maroon" }, "\u00A9"]', otherDoc)).appendTo(otherDoc.body);