The manakai project

Web::DOM::HTMLStyleElement

DOM HTMLStyleElement object

DESCRIPTION

The Web::DOM::HTMLStyleElement class implements the DOM HTMLStyleElement interface. The class is used by the HTML style element.

METHODS

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

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

Return or set the disabled flag of the CSS style sheet of the element. [HTML] [CSSOM]

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

Return or set the media attribute. [HTML]

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

Return or set the nonce attribute. [HTML]

$sheet = $el->sheet

Return the Web::DOM::CSSStyleSheet object representing the CSS style sheet created from the style element, if available. [CSSOM] [HTML]

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

Return or set the type attribute. [HTML]

SPECIFICATIONS

HTML

HTML Standard <http://www.whatwg.org/specs/web-apps/current-work/#the-style-element>.

CSSOM

CSSOM <http://dev.w3.org/csswg/cssom/>.

SEE ALSO

Web::DOM::HTMLElement, Web::DOM::CSSStyleSheet.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

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

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