The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mozilla::DOM::Attr

Mozilla::DOM::Attr is a wrapper around an instance of Mozilla's nsIDOMAttr interface. This inherits from Mozilla::DOM::Node.

 * The nsIDOMAttr interface represents an attribute in an "Element" object.
 * Typically the allowable values for the attribute are defined in a document
 * type definition.
 *
 * For more information on this interface please see
 * L<http:E<sol>E<sol>www.w3.orgE<sol>TRE<sol>DOM-Level-2-CoreE<sol>>

CLASS METHODS

$iid = Mozilla::DOM::Attr->GetIID()

Pass this to QueryInterface.

METHODS

$name = $attr->GetName()

$element = $attr->GetOwnerElement()

$bool = $attr->GetSpecified()

$value = $attr->GetValue()

$attr->SetValue($value)

  • $value (string)

SEE ALSO

Mozilla::DOM

COPYRIGHT

Copyright (C) 2005-2007, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.