@@ -6,14 +6,14 @@ code. The `HeadScript` helper allows you to manage both.
66
77The ` HeadScript ` helper supports the following methods for setting and adding scripts:
88
9- - ` appendFile($src, $type = 'text/javascript', $attrs = array() ) `
10- - ` offsetSetFile($index, $src, $type = 'text/javascript', $attrs = array() ) `
11- - ` prependFile($src, $type = 'text/javascript', $attrs = array() ) `
12- - ` setFile($src, $type = 'text/javascript', $attrs = array() ) `
13- - ` appendScript($script, $type = 'text/javascript', $attrs = array() ) `
14- - ` offsetSetScript($index, $script, $type = 'text/javascript', $attrs = array() ) `
15- - ` prependScript($script, $type = 'text/javascript', $attrs = array() ) `
16- - ` setScript($script, $type = 'text/javascript', $attrs = array() ) `
9+ - ` appendFile($src, $type = 'text/javascript', $attrs = [] ) `
10+ - ` offsetSetFile($index, $src, $type = 'text/javascript', $attrs = [] ) `
11+ - ` prependFile($src, $type = 'text/javascript', $attrs = [] ) `
12+ - ` setFile($src, $type = 'text/javascript', $attrs = [] ) `
13+ - ` appendScript($script, $type = 'text/javascript', $attrs = [] ) `
14+ - ` offsetSetScript($index, $script, $type = 'text/javascript', $attrs = [] ) `
15+ - ` prependScript($script, $type = 'text/javascript', $attrs = [] ) `
16+ - ` setScript($script, $type = 'text/javascript', $attrs = [] ) `
1717
1818In the case of the ` *File() ` methods, ` $src ` is the remote location of the
1919script to load; this is usually in the form of a URL or a path. For the
@@ -86,8 +86,9 @@ The `HeadScript` helper is a concrete implementation of the
8686> ### Arbitrary Attributes are Disabled by Default
8787>
8888> By default, `HeadScript` only will render `<script >` attributes that are blessed by the W3C.
89- > These include ` type` , ` charset` , ` defer` , ` language` , and ` src` . However, some JavaScript
90- > frameworks, notably [Dojo](http://www.dojotoolkit.org/), utilize custom attributes in order to
89+ > These include ` id` , ` charset` , ` crossorigin` , ` defer` , ` integrity` ,
90+ > ` language` , ` src` , and ` type` . However, some JavaScript frameworks, notably
91+ > [Dojo](http://www.dojotoolkit.org/), utilize custom attributes in order to
9192> modify behavior. To allow such attributes, you can enable them via the
9293> ` setAllowArbitraryAttributes ()` method:
9394>
0 commit comments