It could return the body, but the body is not an IPopUpHost and it does not have addElement().
The element of an embedded app will not be the body, so addElement() to that will blow up if it needs to be added to the body. > On Feb 23, 2017, at 9:57 AM, Alex Harui <aha...@adobe.com> wrote: > > > > On 2/22/17, 11:18 PM, "Harbs" <harbs.li...@gmail.com> wrote: > >> That’s not going to work for an embedded app because the body element can >> be outside the app completely. > > What would it take to make it work? If we ask each parent if it is an > IPopUpHost and if it answers yes and it gives us an Iparent to call > addElement on, why couldn't EmbeddedApplication return the body if it > wanted to? > > -Alex >