@@ -121,7+121,7 @@ class ExtendedDocument extends DOMDocument {
// appends an ExtendedDocument::createElementJS() as a child of this document (see there for params)
// NO return value!
//
// 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
//
// appends an ExtendedDocument::createElementJSFile() as a child of this document (see there for params)
// returns the new child
//
@@ -189,8+189,9 @@ class ExtendedDocument extends DOMDocument {
// public function createElementJS($jsdata)
// returns an ExtendedElement that is an HTML <script> of JavaScript type with the JS data inside
//
// public function createElementJS($jsdata)
// returns an ExtendedElement that is an HTML <script> of JavaScript type with the JS data inside
//
- // public function createElementJSFile($jsURL)
+ // public function createElementJSFile($jsURL, [$defer], [$async])
// returns an ExtendedElement that is an HTML <script> of JavaScript type linking to the file given by the URL
// returns an ExtendedElement that is an HTML <script> of JavaScript type linking to the file given by the URL
+ // $defer and $async are boolean attributes that set if the script should be executed after parsing but before onload, and if it should be loaded asynchronously.
function __construct($version = '1.0', $encoding = 'utf-8') {
// make sure the default DOMDocument constructor runs
function __construct($version = '1.0', $encoding = 'utf-8') {
// make sure the default DOMDocument constructor runs
@@ -292,8+293,8 @@ class ExtendedDocument extends DOMDocument {