code: func appendElement(htmlDoc *htmlDocument, parent *tagElement, e element) {
  	if parent != nil {
  		parent.appendChild(e)
  	} else {
  		htmlDoc.append(e)
  	}
  }
docs: // appendElement appends the element to the htmlDocument or parent tagElement.