func (e *Element) AppendChild(child *Element) { count := e.ChildCount() if ret := C.HTMLayoutInsertElement(child.handle, e.handle, C.UINT(count)); ret != HLDOM_OK { domPanic(ret, "Failed to append child element") } }
func (e *Element) InsertChild(child *Element, index uint) { if ret := C.HTMLayoutInsertElement(child.handle, e.handle, C.UINT(index)); ret != HLDOM_OK { domPanic(ret, "Failed to insert child element at index: ", index) } }