X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=classes%2Fdocument.php-class;h=3e39f0acefdcd7ddaa852ffde3e15bb1689ccbc6;hp=218ec3cfde4950d2475bc9b614a87769632d478e;hb=8afa2e61362e19841a938cec083ae51166216110;hpb=880bcb60d557851e01051e9382decd36ec7665a1 diff --git a/classes/document.php-class b/classes/document.php-class index 218ec3c..3e39f0a 100755 --- a/classes/document.php-class +++ b/classes/document.php-class @@ -11,8 +11,9 @@ class ExtendedDocument extends DOMDocument { // CONSTRUCTOR // construct a new DOM Document that uses our element definitions // - // static function initHTML5() + // static function initHTML5([$doc]) // initialize as an HTML5 document and return references to its basic elements. + // If a $doc is handed over (an ExtendedDocument or a derived class), load the content into that document. // returns an associative array with the following elements: 'html', 'head', 'title', 'body' // // public function appendElement($name, [$value]) @@ -120,7 +121,7 @@ class ExtendedDocument extends DOMDocument { // appends an ExtendedDocument::createElementJS() as a child of this document (see there for params) // NO return value! // - // public function appendJSFile($jsURL) + // public function appendJSFile($jsURL, [$defer], [$async]) // appends an ExtendedDocument::createElementJSFile() as a child of this document (see there for params) // returns the new child // @@ -188,8 +189,9 @@ class ExtendedDocument extends DOMDocument { // public function createElementJS($jsdata) // returns an ExtendedElement that is an HTML