Web::DOM::StringMap
The DOM DOMStringMap
object
DESCRIPTION
The Web::DOM::StringMap
class implements the DOM DOMStringMap
interface.
The DOMStringMap
object is used by the dataset
method of the HTML elements.
METHODS
The object supports Perl standard operations for hash references,
e.g.
keys %$map
. [DOMPERL]
$value = $map->{$key}
-
Return the value of the attribute whose name is
data-$key
(where$key
's_
characters are replaced by-
), if any, orundef
. [HTML] [DOMPERL] $map->{$key} = $value
-
Set the value of the attribute whose name is
data-$key
(where$key
's_
characters are replaced by-
). Please note that$key
cannot contain the-
character (it must be replaced by_
). [HTML] [DOMPERL] delete $map->{$key}
-
Delete the attribute whose name is
data-$key
(where$key
's_
characters are replaced by-
), if any. [HTML] [DOMPERL]
SPECIFICATIONS
- HTML
-
HTML Living Standard
<http://www.whatwg.org/specs/web-apps/current-work/>
. - DOMPERL
-
manakai's DOM Perl Binding
<http://suika.fam.cx/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding>
.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.