function serializeDomElement ($el) {
  // console.log('snapshot value!', $el)
  const json = sd.toJSON($el[0])
  // console.log('as json', json)

  // hmm, why is value not serialized?
  if ($el.context.value && !json.attributes.value) {
    json.attributes.value = $el.context.value
  }

  return deleteReactIdFromJson(json)
}
// converts DOM element to a JSON object
converts DOM element to a JSON object
converts DOM element to a JSON object
function serializeDomElement ($el) {
  const json = sd.toJSON($el[0])
  if ($el.context.value && !json.attributes.value) {
    json.attributes.value = $el.context.value
  }
  return deleteReactIdFromJson(json)
}
function serializeDomElement ( $el ) { const json = sd . toJSON ( $el [ 0 ] ) if ( $el . context . value && ! json . attributes . value ) { json . attributes . value = $el . context . value } return deleteReactIdFromJson ( json ) }
converts DOM element to a JSON object
converts DOM element to a JSON object
// console.log('snapshot value!', $el) // console.log('as json', json) // hmm, why is value not serialized?