issues
search
azaslavsky
/
domJSON
Convert DOM trees into compact JSON objects, and vice versa, as fast as possible.
http://azaslavsky.github.io/domJSON/
Other
126
stars
43
forks
source link
Write documentation
#6
Closed
azaslavsky
closed
9 years ago
azaslavsky
commented
9 years ago
Some stuff to include in the docs:
Has two purposes: saving exact state, and doing very big things with WebWorkers
Supported vs Unsupported DOM node types
Goals:
Provide as accurat a copy of a given node's DOM properties as possibly, but optional filter only the relevant ones
Lightweight, no dependencies
As performant as possible
No frivolous data: produce JSON objects that are as compact as possible to meet the user's needs
What you lose:
Circular references are out - only keep the children
Events bindings
Functions
It does explicitly copy the style!
fieldList datatype, including shorthand
Some stuff to include in the docs: