I allowed <div> in the html filter settings of an input format, but embedding doesn't work.
If I turn off the html filter everything works properly.
Allowing all the tags that are used in the embedded node didn't work either.