domJSON
domJSON copied to clipboard
Convert DOM trees into compact JSON objects, and vice versa, as fast as possible.
I got this error: ``` >npx jest FAIL src/reviewer.test.ts (5.44s) × renders test site (23ms) ● renders test site TypeError: Cannot read property 'href' of undefined 7 | > 8...
Can this library do web session recording like: https://github.com/rrweb-io/rrweb ?
Small bug in `README.md` cost me a couple mins; thought I'd post the update to help others. Thanks for the project!
The license header in the README was missing spaces after the `##`, so it was not rendering as a header. This commit adds a space, so it will it will...
Firstly wonderful library excellent, only request is to add xpath of html element in the JSON. this is not issue requesting for enhancement.
Hi, in IE 11 within the copyJSON function IE stops partway into the for ... in and reports InvalidStateError. Specifically when trying to access node[n] here: ``` if (opts.cull) {...
I work on code editor and have following question: DomJson Accepts html element as an argument for ```domJSON.toJSON(element)``` Can i pass pure html string instead? ```domJSON.toJSON('some code')``` i tried that...
- Speed up how `domProperties` are parsed when using an inclusive filterList (or boolean false) - Maybe rewrite the `createNode` function to concatenate children, then append them using innerHTML?
Basically, it sets the serial propertie ("innerHTML", in this case), which writes HTML, and then does so again with the modified child nodes. Best way is to probably look at...