drupal-media/entity_embed — pull request #86 by cs-shadow (2014-08-05 20:11:18+00:00)
Title: Rename tag of container elemet to div if it was drupal-entity

d.o issue: https://www.drupal.org/node/2307553
Follow-up to: #82

Since it's not possible to rename a DOM node directly, first a new node is created and all attributes/children of parent node are copied to the new node. Then we replace the original node with the new node.