// appends a DOMDocument::createComment() as a child of this document (see there for params)
// returns the new child
//
+ // public function appendClonedElement($dom_element, [$deep])
+ // appends a clone of the given DOMElement as a child of this document
+ // the boolean $deep specifies if the children are cloned as well (defaults to TRUE)
+ // returns the new child
+ //
// public function appendHTMLMarkup($htmldata, [$parentNode])
// appends a representation of the HTML data as children of the given parent node, by default this document
// NO return value!
public function appendComment($comment_data) {
return $this->appendChild($this->createComment($comment_data));
}
+ public function appendClonedElement($dom_element, $deep = true) {
+ return $this->appendChild($dom_element->cloneNode($deep));
+ }
public function appendJSElement($jsdata) {
- $this->appendChild($this->createElementJS($jsdata));
+ return $this->appendChild($this->createElementJS($jsdata));
}
public function appendJSFile($jsdata, $defer = false, $async = false) {
return $this->appendChild($this->createElementJSFile($jsdata, $defer, $async));
// appends a DOMDocument::createComment() as a child of this element (see there for params)
// returns the new child
//
+ // public function appendClonedElement($dom_element, [$deep])
+ // appends a clone of the given DOMElement as a child of this element
+ // the boolean $deep specifies if the children are cloned as well (defaults to TRUE)
+ // returns the new child
+ //
// public function appendHTMLMarkup($htmldata)
// appends a representation of the HTML data as children of this element
// NO return value!
//
// public function appendJSElement($jsdata)
// appends an ExtendedDocument::createElementJS() as a child of this element (see there for params)
- // NO return value!
+ // returns the new child
//
// public function appendJSFile($jsURL, [$defer], [$async])
// appends an ExtendedDocument::createElementJSFile() as a child of this element (see there for params)
public function appendComment($comment_data) {
return $this->appendChild($this->ownerDocument->createComment($comment_data));
}
+ public function appendClonedElement($dom_element, $deep = true) {
+ return $this->appendChild($dom_element->cloneNode($deep));
+ }
public function appendHTMLMarkup($htmldata) {
$this->ownerDocument->appendHTMLMarkup($htmldata, $this);
}
$this->ownerDocument->appendXMLMarkup($xmldata, $this);
}
public function appendJSElement($jsdata) {
- $this->appendChild($this->ownerDocument->createElementJS($jsdata));
+ return $this->appendChild($this->ownerDocument->createElementJS($jsdata));
}
public function appendJSFile($jsdata, $defer = false, $async = false) {
return $this->appendChild($this->ownerDocument->createElementJSFile($jsdata, $defer, $async));
// appends a DOMDocument::createComment() as a child of this fragment (see there for params)
// returns the new child
//
+ // public function appendClonedElement($dom_element, [$deep])
+ // appends a clone of the given DOMElement as a child of this fragment
+ // the boolean $deep specifies if the children are cloned as well (defaults to TRUE)
+ // returns the new child
+ //
// public function appendHTMLMarkup($htmldata)
// appends a representation of the HTML data as children of this fragment
// NO return value!
//
// public function appendJSElement($jsdata)
// appends an ExtendedDocument::createElementJS() as a child of this fragment (see there for params)
- // NO return value!
+ // returns the new child
//
// public function appendJSFile($jsURL, [$defer], [$async])
// appends an ExtendedDocument::createElementJSFile() as a child of this fragment (see there for params)
public function appendComment($comment_data) {
return $this->appendChild($this->ownerDocument->createComment($comment_data));
}
+ public function appendClonedElement($dom_element, $deep = true) {
+ return $this->appendChild($dom_element->cloneNode($deep));
+ }
public function appendHTMLMarkup($htmldata) {
$this->ownerDocument->appendHTMLMarkup($htmldata, $this);
}
$this->ownerDocument->appendXMLMarkup($xmldata, $this);
}
public function appendJSElement($jsdata) {
- $this->appendChild($this->ownerDocument->createElementJS($jsdata));
+ return $this->appendChild($this->ownerDocument->createElementJS($jsdata));
}
public function appendJSFile($jsdata, $defer = false, $async = false) {
return $this->appendChild($this->ownerDocument->createElementJSFile($jsdata, $defer, $async));