fix for when extending from other elements - this.parentContainer may be defined as a document fragment