Web::DOM::HTMLImageElement
DOM HTMLImageElement
object
DESCRIPTION
The Web::DOM::HTMLImageElement
class implements the DOM HTMLImageElement
interface.
The class is used by HTML img
elements.
METHODS
In addition to the methods available for classes Web::DOM::Element and Web::DOM::HTMLElement, the following methods are available:
$string = $el->alt
$el->alt ($string)
-
Return or set the
alt
attribute. [HTML] $string = $el->crossorigin
$el->crossorigin ($string)
-
Return or set the
crossorigin
attribute. [HTML] $string = $el->decoding
$el->decoding ($string)
-
Return or set the
decoding
attribute. [HTML] $boolean = $el->ismap
$el->ismap ($boolean)
-
Return or set whether the
ismap
attribute is specified or not. [HTML] $string = $el->src
$el->src ($string)
-
Return or set the
src
attribute. [HTML] $string = $el->srcset
$el->srcset ($string)
-
Return or set the
srcset
attribute. [HTML] $string = $el->usemap
$el->usemap ($string)
-
Return or set the
usemap
attribute. [HTML]
Additionally,
the following obsolete methods are available: align
,
border
,
hspace
,
longdesc
,
lowsrc
,
name
,
and vspace
. [HTML]
SPECIFICATION
- HTML
-
HTML Standard
<https://www.whatwg.org/specs/web-apps/current-work/#the-img-element>
.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013-2018 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.