func:  nsHtml5TreeBuilder::appendToCurrentNodeAndPushElementMayFoster(nsHtml5ElementName* elementName, nsHtml5HtmlAttributes* attributes, nsIContentHandle* form) nsIContentHandle * elt ; nsIContentHandle * formOwner = ! form || fragment || isTemplateContents ( ) ? nullptr : form ; nsHtml5StackNode * current = stack [ currentPtr ] ; if ( current -> isFosterParenting ( ) )  elt = createAndInsertFosterParentedElement ( kNameSpaceID_XHTML , elementName -> name , attributes , formOwner ); elt = createElement ( kNameSpaceID_XHTML , elementName -> name , attributes , formOwner , current -> node ); nsHtml5StackNode * node = new nsHtml5StackNode ( elementName , elt ) ; push ( node ); 