77 |
|
|
78 |
sub namespace_uri ($); |
sub namespace_uri ($); |
79 |
|
|
|
## The name of the attribute [DOM1, DOM2]. |
|
|
## Same as |Attr.name| [DOM3]. |
|
|
|
|
80 |
*node_name = \&name; |
*node_name = \&name; |
81 |
|
|
82 |
sub node_type () { 2 } # ATTRIBUTE_NODE |
sub node_type () { 2 } # ATTRIBUTE_NODE |
83 |
|
|
84 |
## The value of the attribute [DOM1, DOM2]. |
*node_value = \&Message::DOM::Node::text_content; |
|
## Same as |Attr.value| [DOM3]. |
|
|
|
|
|
*node_value = \&value; |
|
85 |
|
|
86 |
sub prefix ($;$) { |
sub prefix ($;$) { |
87 |
## NOTE: No check for new value as Firefox doesn't do. |
## NOTE: No check for new value as Firefox doesn't do. |
471 |
return ${$_[0]}->{specified}; |
return ${$_[0]}->{specified}; |
472 |
} # specified |
} # specified |
473 |
|
|
474 |
sub value ($;$) { |
*value = \&node_value; |
|
## TODO: |
|
|
shift->text_content (@_); |
|
|
} # value |
|
475 |
|
|
476 |
package Message::IF::Attr; |
package Message::IF::Attr; |
477 |
|
|