/// <summary>Adds the given element to the children of this element.
		/// Note that this does not update CSS; it should be used for new elements only.</summary>
		/// <param name="element">The child element to add.</param>
		public void AppendNewChild(Element element){
			if(element==null){
				return;
			}
			
			element.ParentNode=this;
			
			element.Document=Document;
			
			if(Document.AttributeIndex!=null){
				// Index element if needed:
				element.AddToAttributeLookups();
			}
			
			if(ChildNodes==null){
				ChildNodes=new List<Element>();
			}
			
			ChildNodes.Add(element);
			Document.Renderer.RequestLayout();
		}