2 ms·
You could conceivably serialize the DOM as a JSON object, but the representation would be very difficult to work with: { "type": "element", "na
by duskwuff 10y ago
You could conceivably serialize the DOM as a JSON object, but the representation would be very difficult to work with:
{
"type": "element",
"name": "blink",
"attributes": {
"foo": "bar"
},
"children": [
{
"type": "text",
"content": "example text"
}
]
}