Scott Lanning

NAME

Mozilla::DOM::Element

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

 * The nsIDOMElement interface represents an element in an HTML or
 * XML document.
 *
 * 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>>

Note: you can QueryInterface an Element object to a subclass like HTMLSelectElement (from which of course you can call Element methods).

CLASS METHODS

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

Pass this to QueryInterface.

METHODS

$tagname = $element->GetTagName()

$bool = $element->HasAttribute($name)

    • $name (string)

$attr = $element->GetAttribute($name)

    • $name (string)

$element->SetAttribute($name, $value)

    • $name (string)

    • $value (string)

$element->RemoveAttribute($name)

    • $name (string)

$bool = $element->HasAttributeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$attr = $element->GetAttributeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$element->SetAttributeNS($namespaceURI, $qualifiedName, $value)

    • $namespaceURI (string)

    • $qualifiedName (string)

    • $value (string)

$element->RemoveAttributeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$attrnode = $element->GetAttributeNode($name)

    • $name (string)

$attrnode = $element->SetAttributeNode($newAttr)

    • $newAttr (Mozilla::DOM::Attr)

$attrnode = $element->RemoveAttributeNode($attrnode)

    • $oldAttr (Mozilla::DOM::Attr)

$attrnode = $element->GetAttributeNodeNS($namespaceURI, $localName)

    • $namespaceURI (string)

    • $localName (string)

$attrnode = $element->SetAttributeNodeNS($newAttr)

    • $newAttr (Mozilla::DOM::Attr)

$nodelist = $element->GetElementsByTagName($name)

In scalar context, returns a Mozilla::DOM::NodeList. In list context, returns a list of Mozilla::DOM::Elements.

    • $name (string)

$nodelist = $element->GetElementsByTagNameNS($namespaceURI, $localName)

In scalar context, returns a Mozilla::DOM::NodeList. In list context, returns a list of Mozilla::DOM::Elements.

    • $namespaceURI (string)

    • $localName (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.




Hosting generously
sponsored by Bytemark