The manakai project

Web::DOM::HTMLScriptElement

DOM HTMLScriptElement object

DESCRIPTION

The Web::DOM::HTMLScriptElement class implements the DOM HTMLScriptElement interface. The class is used by the HTML script element.

METHODS

In addition to the methods available for classes Web::DOM::Element and Web::DOM::HTMLElement, following methods are available:

$string = $el->charset
$el->charset ($string)

Get or set the charset attribute value. [HTML]

$string = $el->crossorigin
$el->crossorigin ($string)

Get or set the crossorigin attribute value. [HTML]

$boolean = $el->defer
$el->defer ($boolean)

Get or set whether the defer attribute is specified or not. [HTML]

$string = $el->integrity
$el->integrity ($string)

Get or set the integrity attribute value. [HTML]

$boolean = $el->nomodule
$el->nomodule ($boolean)

Get or set whether the nomodule attribute is specified or not. [HTML]

$string = $el->nonce
$el->nonce ($string)

Get or set the nonce attribute value. [HTML]

$string = $el->src
$el->src ($string)

Get or set the src attribute value. [HTML]

$string = $el->text
$el->text ($string)

Get or set the child text content of the element. [HTML]

$string = $el->type
$el->type ($string)

Get or set the type attribute value. [HTML]

Additionally, the following obsolete methods are available: event and html_for. [HTML]

SPECIFICATION

HTML

HTML Standard <https://html.spec.whatwg.org/#the-script-element>.

SEE ALSO

Web::DOM::HTMLElement.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2013-2017 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.