Add Element#isElementAttached

In general we may want to know if an element is attached
to the DOM.

Change-Id: I9a3d00a45323434adb54d7449a3a1dc01c2df245
Merge "Add Element#isElementAttached"