code: function Delete($Contents=true) {
  		$this->FindEndTag();
  		if ($Contents || $this->SelfClosing) {
  			$this->ReplaceSrc('');
  		} else {
  			$inner = $this->GetInnerSrc();
  			$this->ReplaceSrc($inner);
  		}
  	}
docs: Delete the element with or without the content.