X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=classes%2Fdocument.php-class;h=d3dca7d7e66553df777c4160ab97b633f685553a;hp=1f820601cf374befb179a3791669d5bd4aaad58d;hb=1a4ee0f0263c463f59bfb272435ef9f83fdffaa7;hpb=9efda7dacdc049ae84d07141ddd545885bf77cb6 diff --git a/classes/document.php-class b/classes/document.php-class index 1f82060..d3dca7d 100755 --- a/classes/document.php-class +++ b/classes/document.php-class @@ -259,7 +259,7 @@ class ExtendedDocument extends DOMDocument { static function initHTML5($doc = null) { if (is_null($doc)) { $doc = new ExtendedDocument(); } - $doc->loadHTML(''); // this seems to be the only way to get the DOCTYPE set properly. + $doc->loadHTML(''); // this seems to be the only way to get the DOCTYPE set properly. // Created basic HTML document structure. $root = $doc->getElementsByTagName('html')->item(0); @@ -374,8 +374,8 @@ class ExtendedDocument extends DOMDocument { public function appendJSElement($jsdata) { return $this->appendChild($this->createElementJS($jsdata)); } - public function appendJSFile($jsdata, $defer = false, $async = false) { - return $this->appendChild($this->createElementJSFile($jsdata, $defer, $async)); + public function appendJSFile($jsURL, $defer = false, $async = false) { + return $this->appendChild($this->createElementJSFile($jsURL, $defer, $async)); } public function appendHTMLMarkup($htmldata, $parentNode = null) { @@ -905,8 +905,8 @@ class ExtendedElement extends DOMElement { public function appendJSElement($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)); + public function appendJSFile($jsURL, $defer = false, $async = false) { + return $this->appendChild($this->ownerDocument->createElementJSFile($jsURL, $defer, $async)); } public function setClass($classname) { $this->setAttribute('class', $classname); @@ -1173,8 +1173,8 @@ class ExtendedDocumentFragment extends DOMDocumentFragment { public function appendJSElement($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)); + public function appendJSFile($jsURL, $defer = false, $async = false) { + return $this->appendChild($this->ownerDocument->createElementJSFile($jsURL, $defer, $async)); } } ?>