that is a child of the new child
@@ -402,6 +430,10 @@ class ExtendedElement extends DOMElement {
// appends a DOMDocument::createTextNode() as a child of this element (see there for params)
// returns the new child
//
+ // function appendComment($comment_data)
+ // appends a DOMDocument::createComment() as a child of this element (see there for params)
+ // returns the new child
+ //
// function appendHTMLMarkup($htmldata)
// appends a representation of the HTML data as children of this element
// NO return value!
@@ -429,6 +461,9 @@ class ExtendedElement extends DOMElement {
function appendLink($target, $value = '') {
return $this->appendChild($this->ownerDocument->createElementLink($target, $value));
}
+ function appendImage($src, $alt_text = '') {
+ return $this->appendChild($this->ownerDocument->createElementImage($src, $alt_text));
+ }
function appendFormDiv($action, $method, $name) {
$formelem = $this->appendChild($this->ownerDocument->createElementForm($action, $method, $name));
return $formelem->appendElement('div');
@@ -463,6 +498,9 @@ class ExtendedElement extends DOMElement {
function appendText($text) {
return $this->appendChild($this->ownerDocument->createTextNode($text));
}
+ function appendComment($comment_data) {
+ return $this->appendChild($this->ownerDocument->createComment($comment_data));
+ }
function appendHTMLMarkup($htmldata) {
$this->ownerDocument->appendHTMLMarkup($htmldata, $this);
}
@@ -494,6 +532,10 @@ class ExtendedDocumentFragment extends DOMDocumentFragment {
// appends an ExtendedDocument::createElementLink() as a child of this fragment (see there for params)
// returns the new child
//
+ // function appendImage($src, [$alt_text])
+ // appends an ExtendedDocument::createElementImage() as a child of this document (see there for params)
+ // returns the new child
+ //
// function appendFormDiv($action, $method, $name)
// appends an ExtendedDocument::createElementForm() as a child of this fragment (see there for params)
// returns an HTML
that is a child of the new child
@@ -538,6 +580,10 @@ class ExtendedDocumentFragment extends DOMDocumentFragment {
// appends a DOMDocument::createTextNode() as a child of this fragment (see there for params)
// returns the new child
//
+ // function appendComment($comment_data)
+ // appends a DOMDocument::createComment() as a child of this fragment (see there for params)
+ // returns the new child
+ //
// function appendHTMLMarkup($htmldata)
// appends a representation of the HTML data as children of this fragment
// NO return value!
@@ -565,6 +611,9 @@ class ExtendedDocumentFragment extends DOMDocumentFragment {
function appendLink($target, $value = '') {
return $this->appendChild($this->ownerDocument->createElementLink($target, $value));
}
+ function appendImage($src, $alt_text = '') {
+ return $this->appendChild($this->ownerDocument->createElementImage($src, $alt_text));
+ }
function appendFormDiv($action, $method, $name) {
$formelem = $this->appendChild($this->ownerDocument->createElementForm($action, $method, $name));
return $formelem->appendElement('div');
@@ -599,6 +648,9 @@ class ExtendedDocumentFragment extends DOMDocumentFragment {
function appendText($text) {
return $this->appendChild($this->ownerDocument->createTextNode($text));
}
+ function appendComment($comment_data) {
+ return $this->appendChild($this->ownerDocument->createComment($comment_data));
+ }
function appendHTMLMarkup($htmldata) {
$this->ownerDocument->appendHTMLMarkup($htmldata, $this);
}